Restart host
restart_hostRestarts the subagent-mcp host to load rebuilt code from disk while keeping agent records, results, usage, and queued or scheduled tasks intact.
Instructions
Restart this project's subagent-mcp host so it runs the subagent-mcp code currently on disk (after a rebuild). Agent records, results and usage are kept, and queued or scheduled (start_at/delay_seconds) tasks persist so a restart is safe for them; the replacement host re-arms their timers and the result reports scheduled_tasks_preserved. Undelivered pings are kept too. Always refused while any agent is running, waiting for a slot, or waiting for approval. Also refused when the host already runs the code on disk, or when other Claude Code sessions are connected to it (restarting would disconnect them); ask the user before passing force: true to override those two. Reconnecting with /mcp already reloads an idle host that no other session uses; use this when a host_warning says the host is on an older build. After a restart this connection lists the new host's tools and tells Claude Code the tool list changed.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "restart_host"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Restart even if the code is unchanged or other sessions are connected |