agent_sessions
Recent sessions of the AI agent programs on the machine, newest first, with the id agent_prompt takes to continue one.
Arguments
Over MCP every tool also takes machine: the machine’s name or id, optional when only one machine is online.
| Name | Type | Required | Meaning |
|---|---|---|---|
agent | string | no | Catalog id. Absent: every agent agent_list shows. |
limit | integer | no | At most this many, newest first (default 20, at most 200). |
Result
| Name | Type | Required | Meaning |
|---|---|---|---|
sessions | object[] | yes |
Examples
MCP
{
"name": "agent_sessions",
"arguments": {
"machine": "<machine>"
}
}Limits
The call times out after 30 s (timed_out). Available since version 0.1.13. A refused or failed call returns one of the error codes.