List posts
list_postsOn one site of the account, named in site. The publication's posts and pages, newest first, fifty a page: id, title, kind, status, language, slug and a preview link. Filter by status, kind, language, tag slug, author slug, collection or a search string over the title and text. Use the id with get_post and the writing tools.
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": {
"site": "<site>"
},
"name": "list_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Words to look for in titles and text | |
| tag | No | A tag's slug | |
| kind | No | ||
| page | No | 1 by default | |
| site | Yes | The site to work on, as list_sites names it | |
| author | No | A staff member's slug | |
| status | No | ||
| language | No | A BCP 47 tag the publication publishes in | |
| collection | No | A collection's id, slug or name: its pages alone (get_collection gives them as a tree) |