Handoff To Agent
handoff_to_agentWrites implementation plans to .ai-bridge/current-plan.md for local coding agents (Codex, OpenCode, Pi, or custom), enabling continued work.
Instructions
Write .ai-bridge/current-plan.md for Codex, OpenCode, Pi, or another local implementation agent. This only creates handoff files; it does not execute local agent commands.
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": {
"plan": "<plan>"
},
"name": "handoff_to_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | Detailed implementation plan for the local agent. | |
| agent | No | Target agent id, for example codex, opencode, pi, or custom. Default: custom. | |
| model | No | Optional model identifier to include in the handoff plan. | |
| title | No | Short task title. | |
| append | No | Append to existing current-plan.md instead of overwriting. Default: false. | |
| agent_name | No | Human-readable agent name for custom agents. | |
| workspace_id | No | Workspace id from open_workspace. Omit to use default workspace. |