list_media
List WordPress media library items with optional search and MIME type filtering. Request only needed fields to streamline retrieval.
Instructions
List WordPress media library items. Supports search and MIME type filtering (e.g. image/jpeg). Use fields param to request only needed fields.
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": "list_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number | |
| fields | No | Comma-separated fields to return (default: id,title,source_url,mime_type,date) | |
| search | No | Search term | |
| per_page | No | Items per page (max 100) | |
| mime_type | No | MIME type filter (e.g. image/jpeg) |