bricks_list_media
Retrieve media files from the WordPress Media Library to locate image attachment IDs by search, mime-type, and page size.
Instructions
List media attachments from the WordPress Media Library. Use to find existing images and their attachment IDs.
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": "bricks_list_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | No | Search term to filter media (optional) | |
| per_page | No | Number of results (default: 10, max: 100) | |
| mime_type | No | Filter by MIME type, e.g. "image/jpeg" or "image" (optional) |