List messages
messages_listList messages
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": {
"threadId": "<threadId>"
},
"name": "messages_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size, from 1 to 100. Defaults to 50. | |
| order | No | Sort direction by `createdAt`. Defaults to `desc`, newest first. | |
| cursor | No | The previous page's `nextCursor`. Opaque, and valid only with the filters it was issued for. | |
| expand | No | Related resources to embed next to their ID field, one path per key, at most 4. | |
| threadId | Yes |