Agents
Get self diagnostics for an agent
Changed onSelf-scoped diagnostics by default. Cross-agent access requires privileged=1 with admin credentials. Trend alerts are informational signals derived from current-vs-previous window deltas (error spikes, throughput drops, activity stalls).
get/api/agents/{id}/diagnostics
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- Auth
- API key in cookie __Host-mc-session
- or API key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Agent numeric ID or name.
Query parameters
hoursinteger
Diagnostics window in hours.
sectionstring
Comma-separated sections: summary,tasks,errors,activity,trends,tokens.
privileged'1'
Set to 1 to allow explicit admin cross-agent diagnostics access.
Response
Diagnostics payload
Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking