handoff_session
Transfer session context between agents by generating a markdown summary and optionally seeding a new session with given instructions.
Instructions
Hand a session's context from one agent to another. Builds a markdown brief from the source transcript, saves it under ~/.agent-bus/handoffs/, and either returns a ready-to-run launch command (launch=false) or seeds a new target session and returns its resume command (launch=true).
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": {
"from_agent": "<from_agent>",
"session_id": "<session_id>",
"to_agent": "<to_agent>"
},
"name": "handoff_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Override working directory | |
| tail | No | Messages to include (default 25) | |
| launch | No | Actually seed the target session now | |
| to_agent | Yes | ||
| from_agent | Yes | ||
| session_id | Yes | ||
| instructions | No | What the target agent should do next |