Cancel a browser-agent run
tinyfish.web.agent.run.cancelStop a pending or running Agent run; completed steps remain billable upstream.
- Price
- freeAt provider cost
- Success rate
- 100%Last 30 days · 13 calls
- Latency p50
- 110 msp95 568 ms
- Last verified
- Sep 23, 2026Verified working
POSThttps://toolswitch.dev/v1/tools/tinyfish.web.agent.run.cancelPreviewTry onlineComing soonProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Path parameters | ||||
run_id | string | Required | e1f90a04-486f-441b-95af-7f7223eb994b | |
- Path parameters
run_idstringRequiredExample:
e1f90a04-486f-441b-95af-7f7223eb994b
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
Preview
curl -X POST 'https://toolswitch.dev/v1/tools/tinyfish.web.agent.run.cancel' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/tinyfish.web.agent.run.cancel",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/tinyfish.web.agent.run.cancel", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at free, including the service fee.