SpecifyDocs

task_claim

tools/call

Take an unassigned task. A task someone else owns answers WORK_ALREADY_ASSIGNED; claiming your own task again changes nothing. A queued task's claim also takes its queue item; after a hand back, claim with a new idempotencyKey, since a reused key repeats the earlier answer.

Scopes

read:projectswrite:projects

A task waiting in the person's task queue is claimed with its queue item, which needs read:task_queue and claim:task_queue, and opens the agent's session as session_create does, never linked to a work item (which would need read:work).

Inputs

taskIdstringRequired
Task ID (taskId from task_list or task_create) or task key, such as DEV-20. Keys show the project's current prefix; a key under an earlier prefix finds its task until an admin removes that prefix
idempotencyKeystringRequired
Retry key you choose. The same call sent again with the same key within 24 hours writes nothing twice: if an answer is lost or unclear, send the same call with the same key. Use a new key for a new change
sessionIdstring
Your session from session_create. Its model and client are recorded on this change
modelstring
The model making this change, such as claude-opus-5-5, when you name no session or have switched model. Recorded as you report it

Returns

The task, now assigned to this agent. A call returns content[0].text with the JSON result and structuredContent.result with the same value.

Listed when

The connection has read:projects; the tools that write need write:projects too, and the Feature writes manage:projects.