Resume subagent
send_messageResume an existing child agent by ID or name, preserving its history and queuing a prompt if it is mid-turn; control wait time, turn timeout, and completion notifications.
Instructions
Resume a completed agent by ID or name, preserving its full history. Blocks for at most wait_seconds (default 30 seconds, or sendMessageWaitSeconds in models.yaml); on expiry it returns status "running" with wait_expired: true and leaves the turn running. Codex resumes replay the whole thread with no prompt cache: the result includes a warning, and a resume after a long idle (default 30 minutes, codexResumeIdleSeconds in models.yaml) is refused unless allow_expensive_resume is true. timeout is the turn cap in seconds and is echoed as timeout_seconds. If the agent is still mid-turn, this queues the message (one slot) for delivery the moment the current turn ends — call list_agents/get_agent_events if you need to know when it lands. notify changes the completion ping policy for this and later turns (always, on_failure, never); needs_approval always pings. Results are capped at 4000 characters by default; set max_result_chars to override the cap.
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": {
"agent": "<agent>",
"prompt": "<prompt>"
},
"name": "send_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | Agent ID or name | |
| effort | No | Reasoning effort for this turn (Codex, Antigravity and Copilot per-turn; Claude only when the session must cold-start). OpenCode, Cursor and Vibe reject it. Defaults to the value used at spawn. | |
| notify | No | Completion ping policy for this and later turns: always (default), on_failure, or never. needs_approval always pings. | |
| prompt | Yes | ||
| timeout | No | Turn cap in seconds for this resume. Overrides the agent config. Echoed back as timeout_seconds. | |
| wait_seconds | No | How long this call waits for the turn to settle before returning status "running". Defaults to sendMessageWaitSeconds (30s). 0 returns immediately. This does not cancel the turn. | |
| max_result_chars | No | Maximum result characters returned by this call | |
| run_in_background | No | ||
| allow_expensive_resume | No | Resume a Codex agent even though it has been idle past the uncached-replay limit. | |
| allow_agent_definition_change | No | Resume an Antigravity conversation even though its custom-agent file changed since spawn. |