get_media
Retrieve details for a WordPress media attachment by ID, including URL, dimensions, and alt text, to inspect or reuse the file in site content.
Instructions
Get details of a single media attachment by ID (URL, dimensions, alt text, etc.)
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": {
"id": "<id>"
},
"name": "get_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Media attachment ID |