work_as_agent
Work as one of your agents from THIS connection — everything you then do is attributed to it, recorded against it, and subject to its permissions and its prediction gate. Pass agent_id (the id from list_agents, or the agent's exact name — resolved only within this tenant) to become that agent; LEAVE agent_id OUT (or pass null/empty) to go back to working as yourself — that direction always works and is never refused. You keep seeing and steering every agent either way; this only decides whose work it is. When SWITCHING from one agent to another and the block of work you are leaving is worth an episode (an open one, many small steps, or a long stretch), this ASKS instead of switching — pass skip_episode=true to switch anyway. Going back to yourself never asks; it reports what stayed unrecorded and lets you out. Never blocked by the prediction gate, so you can always get back out.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "work_as_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | No | ID of the agent | |
| skip_episode | No | Switch agents even if the work being left is worth an episode |