postbag_read
Read recent letters from a bag in chronological order, excluding endpoint credentials. Page backward with before set to the last ledger record number.
Instructions
Read recent records in chronological order, excluding endpoint credentials.
Pass next_before as before to page backward by ledger record number. The letters count covers the whole bag. Peer registration is not liveness.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "postbag_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bag | No | Default or named bag. Join creates a missing bag. | default |
| limit | No | ||
| before | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | Yes | ||
| message | Yes | ||
| error_code | Yes | ||
| submission_state | Yes |