Agent Claim And Read
agent_claim_and_readClaim a READY/HANDOFF task with a TTL lease and load its L1 context.
``context`` holds the task's context_docs at their pinned versions, the
latest continuation pack first (is_continuation: true): read it before
anything else. Untrusted bodies come as untrusted_content.
Returns the task, upstream L1 handoff briefs, referenced state slots and
document summaries. L2 artifact bodies are intentionally not included;
call dereference(artifact_uri) only when verification is required.
The response's lease carries lease_id, fencing_token and
heartbeat_interval_s: call heartbeat(lease_id) on that interval and pass
fencing_token with your task writes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task_key": "<task_key>"
},
"name": "agent_claim_and_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | ||
| task_key | Yes | ||
| lease_seconds | No | Legacy lease TTL in seconds (5–3600). Prefer lease_ttl_seconds. | |
| idempotency_key | No | Optional. Retries with the same key and arguments within 24 h replay the first result (replayed=true) without a second write; a different body with the same key is idempotency_key_reused. | |
| include_context | No | ||
| session_batch_id | No | ||
| context_max_bytes | No | ||
| lease_ttl_seconds | No | Lease TTL, 60–3600 s (default 900 under API 2026-11, 900 before). Heartbeat every lease.heartbeat_interval_s or the task returns to READY. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||