List media
wp_get_mediaList items in the Media Library with their ID, title and URL. Filter by search text, uploader or date range. Returns 10 unless limit is set.
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": "wp_get_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | ||
| limit | No | ||
| author | No | Filter by uploader user ID. | |
| before | No | ||
| search | No | ||
| author_name | No | Filter by uploader user slug (nicename). Ignored if author is set. |