zas_get_item
Fetch a single Zas channel item by ID: notes return as text and files are saved to a new path without overwriting existing files. Use it to retrieve one message or attachment safely.
Instructions
Fetch one item from a Zas channel. A note comes back as text; a file is written to disk. Returns the path written; it can differ from dest when a file with that name already exists. Writes a new file under dest (or the system temp directory); it never overwrites an existing file. The owner sees every item this agent sends with the >_ agent mark and this agent's name, on every device.
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": {
"channel": "<channel>",
"id": "<id>"
},
"name": "zas_get_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Item id, as `zas_list_items` reports it. | |
| dest | No | Where to write a file. A directory means "inside it". Defaults to a fresh temporary directory. | |
| channel | Yes | Channel name or id. |