claim_task
Claim a queued task from a project for an agent, automatically selecting an eligible task or targeting a task_id, with lease TTL and response field controls.
Instructions
Claim a task: auto-pick takes the best queued task of the required project; with task_id the call is unscoped and also accepts a blocked task. agent defaults to "unknown"; lease_ttl_min overrides the default for this claim only (<=1440, larger refused). fields adds task fields to the response; max_field_chars truncates.
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": "claim_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | agent name; defaults to "unknown" when omitted; <=200 code points | |
| fields | No | extra fields to include in the response | |
| project | No | project slug; required on every enumerating call (no default, no all-projects mode) | |
| task_id | No | ||
| lease_ttl_min | No | lease TTL in minutes for this claim; overrides the server default for this claim only; <=1440 | |
| max_field_chars | No | truncate each string field to N code points, marker …(+N chars); omitted = full text |