Home / Servers / DigitalOcean API / harness_cancel_session_turn
Cancel the agent turn in flight.
An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.
Cancel the agent turn in flight. Stops the turn POST /input started. Pass run_id from that response to name the turn; an empty body cancels whichever turn is in flight. outcome is acked when the agent accepted the interrupt… [POST /v2/agents/sessions/{session_id}/cancel]
Name on the gateway: digitalocean_api__harness_cancel_session_turn · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
session_id required | string | The session UUID. |
run_id | string | Turn id returned by POST /input. Omit it to cancel whichever turn is in flight. |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "digitalocean_api__harness_cancel_session_turn",
"arguments": {
"session_id": "…"
}
}Or connect the DigitalOcean API server directly, which lists 874 tools including this one:
claude mcp add --transport http hj-digitalocean-api https://mcp.hjlabs.in/mcp/digitalocean-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the cancel the agent turn in flight. tool with session_id set to ….