Upload media
assets_uploadUpload a local image, video, audio, or PDF to the brand library and return its mediaKey. Requires write scope; for chat-visible files, attach them to jobs instead.
Instructions
Upload a local image, video, audio file or PDF to the brand library; returns its mediaKey. For a file the chat should see, attach it to jobs_create/jobs_continue instead. Needs the write scope.
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": {
"file": "<file>"
},
"name": "assets_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the local media file. Only files under the MCP server's working directory or SHAPELESS_UPLOAD_ROOT, with no hidden (dot) path segments, are read. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes |