authoring-get-media-item
Retrieve a Sitecore media item by ID or path through the Authoring API to get its identity, MIME type, size, and URL for image fields or media library checks.
Instructions
Reads a media item over the Authoring and Management API, returning its identity, mime type, size and URL. Use it after authoring-upload-media to get the ID an image field value needs, or to check what is already in the media library. Supply exactly one of id or path.
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": "authoring-get-media-item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The media item's GUID. Supply this or path. | |
| path | No | The media item's full path, e.g. '/sitecore/media library/Project/MySite/hero'. Supply this or id. | |
| database | No | The database holding the media library. Defaults to master. | |
| language | No | The media item's language. |