cancel
Stop an active delegation by session ID, optionally force-killing the agent process if it continues after a grace period, returning its final status.
Instructions
Best-effort cancel of an in-flight delegation by sessionId. session/cancel is advisory — the agent may finish the turn anyway, and the delegate result then carries cancelRequested. Status: cancelled, killed (agent process observed to exit), not-running (turn already ended, still resumable), not-found (id not in this process's recent session history).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Kill the agent process if the turn is still running after a short grace period. | |
| sessionId | Yes |