# Framework sessions can stop one tool call

> Session::cancel_tool_call stops a single running tool call; the model reads that it was cancelled and the turn carries on.

Source: <https://everruns.com/docs/changelog/2026-11-12-framework-cancel-tool-call/>

Date: 2026-11-12
Products: Framework
Category: Feature
Available: In 0.53.0

An embedded agent’s host can now [stop one running tool call](https://everruns.com/docs/framework/events-and-cancellation/#cancel-one-tool-call) without cancelling the whole turn, for example when a user stops a long shell command in an editor:

```rust
if session.tool_call_running("call_42") {
    session.cancel_tool_call("call_42");
}
```

The call’s future is dropped, its tool context cancellation fires, and it completes with status `cancelled` and an error the model reads, so the agent can react and continue. Other calls in the same batch finish as usual. A host that runs tools behind its own registry can put a `ToolCallCancels` in the tool context extensions instead.