create_media
Register a media item in Agentic CMS by providing its filename and URL, with optional metadata like dimensions, caption, alt text, and MIME type.
Instructions
Register a media item in the CMS.
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": {
"filename": "<filename>",
"url": "<url>"
},
"name": "create_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL where the media is accessible | |
| width | No | Width in pixels | |
| height | No | Height in pixels | |
| caption | No | Caption for the media | |
| alt_text | No | Alt text for accessibility | |
| filename | Yes | Filename of the media | |
| file_size | No | File size in bytes | |
| mime_type | No | MIME type (e.g., image/png) | |
| created_by | No | Who uploaded this media | |
| storage_path | No | Storage path (e.g., S3 key) |