media_list_attachments
Lists image attachments newest first with their optimization records, optionally filtered by status for a WordPress site.
Instructions
List image attachments, newest first, with their optimization records, optionally filtered by status.
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": "media_list_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page, default 1 | |
| site | Yes | Site id (see list_sites) | |
| status | No | Only attachments in this state | |
| per_page | No | Per page, 1..100, default 20 |