agent
Create, dispatch, and manage persistent project-scoped AI workers: update configs, send async prompts, inspect turn history, and cancel, close, or reopen runs.
Instructions
Manage persistent project-scoped Agents: inspect project overview, create/update configs, dispatch async prompts, inspect turns, and control Agent lifecycle. Call with op=, params={...} (use op='help' for full schema):
list(status?, created_by?, include_closed?): Return compact live snapshot of current project's active agents, defaults, presets, and selectable available_mcps.
create(name?, preset_id?, model?, system_prompt?, inherit_mcp?, catalog_refs?, mcp_servers?, mcp_server_names?): Create a persistent Agent strictly bound to the current project cwd.
update(agent_id, name?, model?, system_prompt?, inherit_mcp?, catalog_refs?, mcp_servers?, mcp_server_names?): Update an idle project Agent's model, prompt, or MCP config.
send(agent_id, prompt, interrupt?, wait?, timeout_sec?): Dispatch a prompt asynchronously (default interrupt=true, wait=false) and return turn_id + wait_command.
messages(agent_id, session_id?, turn_id?, limit?, include_trace?): Read turn history and optional trace records for a project Agent.
cancel(agent_id, reason?): Cancel a project Agent's currently running turn.
close(agent_id): Close a project Agent (stops agy process & profile, preserves history).
reopen(agent_id): Reopen a closed project Agent (rebuilds isolated profile & marks idle).
delete(agent_id): Permanently delete a project Agent, its isolated profile, and history.
help(op?): Return single-source parameter specs and examples for
agentops.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"op": "<op>"
},
"name": "agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| params | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||