Put messages in my queue
queue_putPut 1 to 100 messages (any JSON, up to 64 KB each) in a queue of your durable-queue plan, for workers to take with queue_claim. The queue is made on first use (60 s lease, 5 attempts; queue_settings changes them). All or nothing: if one message does not fit, none is added. Returns each message's id (a dedup_key already in the queue returns that message, duplicate: true). To store one value instead, use locker_put.
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",
"messages": [
{
"body": {
"file": "photo.png",
"task": "resize"
}
}
],
"instance_id": "que_exampleexampleexample2"
},
"name": "queue_put"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| queue | Yes | Queue name: 1 to 64 characters from a-z 0-9 . _ -. | |
| messages | Yes | The messages to put. | |
| 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. |