Upload media
import_mediaOpen an upload card so the user can choose images, videos, audio, fonts or ZIP archives from their device. After they upload, the asset IDs and URLs arrive in their next message and can be used with the generation tools. For a voice-cloning sample pass purpose "voice_clone": the card takes one audio recording, stores it privately and returns audio_asset_id for clone_voice, not a public URL. In ChatGPT, use import_chatgpt_media instead when the file is already attached to the conversation.
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": "import_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | What the files are for; shown on the card. | |
| purpose | No | voice_clone: one private voice sample; the card returns audio_asset_id for clone_voice instead of a public URL. | |
| skills_used | No | Optional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs. |