Get Cross-Agent Handoff Context
get_handoff_contextRetrieves a compact, budgeted context pack from recent project sessions across AI coding agents so a new agent can resume work with prior requests, turns, and file changes.
Instructions
Retrieve a compact, budgeted handoff context pack from the most recent sessions of a project across other AI Coding Agents (e.g. switching from Codex to Claude Code). Returns initial request, latest turns, touched files, and provenance.
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": {
"project_path": "<project_path>"
},
"name": "get_handoff_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_sessions | No | Maximum number of recent sessions to include (1-10, default 3). | |
| project_path | Yes | Absolute path to the project directory (or a subdirectory inside it). | |
| exclude_agent | No | Optional agent_id of the currently active tool to exclude (e.g. 'claude', 'codex', 'cursor') so sessions from other tools are prioritized. | |
| source_agents | No | Optional allowlist of agent_ids to include (defaults to all agents). | |
| max_context_chars | No | Strict character budget for the assembled context pack (default 20000). |