Extend queue leases
queue_extendMore time for long work: each lease from queue_claim that has not run out ends visibility_timeout_seconds from now (a shorter time than is left shortens it). Call it before the lease ends; finish with queue_ack or queue_nack. Returns extended (each new lease_expires_at) and lost (leases that ran out or matched nothing).
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"queue": "jobs",
"leases": [
"lse_0123456789abcdef0123456789abcdef"
],
"instance_id": "que_exampleexampleexample2",
"visibility_timeout_seconds": 300
},
"name": "queue_extend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| queue | Yes | Queue name: 1 to 64 characters from a-z 0-9 . _ -. | |
| leases | Yes | Leases (lse_...) from queue_claim. | |
| instance_id | Yes | Utility instance id from buy or list_utilities. | |
| passport_token | No | Your amp_ token, only if you have no app sign-in and cannot send a header. | |
| visibility_timeout_seconds | Yes | The lease ends this many seconds from now. |