Get several media items at once
get_media_itemsFetch up to 50 media items by ID in a single request, reducing API quota usage. Unreadable IDs are returned with reasons so the call doesn't fail entirely.
Instructions
Fetch up to 50 media items by id in one call. Prefer this over repeated get_media_item: it is one request against the daily quota rather than fifty. Only media uploaded by this app is returned. To reach anything else in the user's library, use start_pick_session.
Ids that cannot be read come back in failed with a reason, rather than failing the whole call.
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_item_ids": "<media_item_ids>"
},
"name": "get_media_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Which connected Google account to act as, by the name it was configured under (or its email). Defaults to the first one. Call list_accounts to see them. | |
| media_item_ids | Yes | Media item ids, up to 50. |