wait_for_claim_failed
Block until a claimed run is stopped for exceeding its budget, then return the ClaimFailed event with holder and budget axis, or null when the timeout lapses.
Instructions
Block until a claimed run is stopped for going over its budget (claim_failed) and return the ClaimFailed event (member_id is the stopped holder, reason the budget axis: tokens, usd, turns or wall), or null when the timeout lapses. A report_usage past a limit releases the claim, dead-letters the run and emits it; a reclaim whose worked time put the thread over budget emits it too. Use wait_for_claim_expired for a holder that died or stopped renewing instead, and wait_for_event to wait on several kinds. Scoped to channel_id when given, else any thread you may read in the workspace; since_log_id replays a stop recorded in the gap before this call subscribes. To put a deadline on a thread instead, use set_wait. Requires workspace:read.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "wait_for_claim_failed"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_id | No | UUID of a channel; only budget stops of its tasks count. Omitted, any thread you may read in the workspace. | |
| timeout_ms | No | Wait window in milliseconds, from 1 to 300000 (default 30000). When it lapses the tool returns null. | |
| since_log_id | No | Your high-water log_id. The log is replayed for a matching event with a log_id greater than this before the wait goes live, so an event in the gap between two calls is caught. Omitted, only events after the call count. |