Read X media metadata
x_mediaRead media metadata by media key through X API v2, returning structured JSON or classified errors without fabricating data. Read-only.
Instructions
Read media metadata by media key. The direct endpoint may be forbidden when the developer App is not enrolled in a Project; the error is returned without fabricating data. Read-only.
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": {
"media_key": "<media_key>"
},
"name": "x_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| media_key | Yes | X media key in the form <type>_<id>. | |
| media_fields | No | Mapped to media.fields. |