run
Spawn a sandboxed pi agent in RPC mode with optional read/write/denied mounts; it starts idle and waits for send_message, enabling isolated agent execution and artifact inspection.
Instructions
Spawn a bwrap-caged pi agent in RPC mode with optional write/read/denied mount rules. The agent starts idle and waits for send_message. Returns immediately. The agent's /tmp is forwarded to its artifact directory and can be inspected with list_tmp, grep_tmp, read_tmp, read, grep, and get_info. Inside an agent, AGENT_ID names itself; call run(callback_agent_id=AGENT_ID) to have pi-mcp prompt you with the child's result and artifact paths when it settles. Pass access_token to put the child in that token's group and patch only its MCP config. Pass context_size to lower this agent's pi context budget so autocompaction starts during long runs. When called by a caged agent, requested mounts are narrowed to that agent's mounts.
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": "run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| read | No | ||
| model | No | ||
| write | No | ||
| denied | No | ||
| provider | No | ||
| access_token | No | ||
| context_size | No | ||
| callback_agent_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||