---
title: "Cancel tool execution"
method: POST
path: "/v1/tools/executions/{toolExecutionId}/cancel"
tags: ["Tools"]
---

# Cancel tool execution

`POST /v1/tools/executions/{toolExecutionId}/cancel`

Request cancellation of a running tool execution. The execution transitions to `cancelled` if it has not already completed.

## Path parameters

- `toolExecutionId` string, required

## Response `202`

Cancellation request accepted

- StartToolExecutionResponse — Returned when a tool execution is started. Use `toolExecutionId` to poll for results or cancel.
  - `toolExecutionId` string, required — Execution id (e.g. `vg_tool_...`).

## Other responses

- `default` — Error

---

[API](https://skmtc.dev/videogen/apis/videogen-api.md) · [All operations](https://skmtc.dev/videogen/apis/videogen-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/videogen/videogen-api/revisions/33dda0455d67/schema)
