remote_session_reset
Recover a wedged remote session by clearing stuck relay state, or rotate to mint a new key and require the remote listener to reconnect.
Instructions
Recover a wedged remotify session. Default (no arguments): clear stuck relay state in place - drops any queued command/result and the in-flight marker; the session key and a connected listener keep working. With {"rotate": true}: abandon the current session and mint a brand-new key - the old key dies, the remote listener disconnects, and the user must paste the NEW runner one-liner (returned by this tool) on the remote. Normally NOT needed: remote_exec auto-recovers from stale state by itself. Use it only when remote_exec stays wedged (repeated [busy] for a command you never issued) despite same-args retries, or when the user explicitly asks to reset or rotate the session.
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": "remote_session_reset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rotate | No | Mint a brand-new session key instead of clearing the current one in place (requires the user to reconnect the remote listener) |