inject_session_to_agent
Convert and inject a context bundle into a target agent's native session store (Claude, Codex, Antigravity, or Grok) so the session resumes natively.
Instructions
Convert and inject the latest context bundle directly into a target agent's native session store ('claude', 'codex', 'antigravity', or 'grok') so it can be resumed natively.
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": {
"to_agent": "<to_agent>"
},
"name": "inject_session_to_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional workspace directory. | |
| to_agent | Yes | Target agent ('claude', 'codex', 'antigravity', 'grok'). | |
| from_agent | No | Optional source agent. | |
| session_id | No | Optional source session ID. |