Skip to Content
ReferenceToolsagent_sessions

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.

NameTypeRequiredMeaning
agentstringnoCatalog id. Absent: every agent agent_list shows.
limitintegernoAt most this many, newest first (default 20, at most 200).

Result

NameTypeRequiredMeaning
sessionsobject[]yes

Examples

{ "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.