Import a file from URL
import_fileDownload a remote file (public https URL) into the workspace Media Assets library. Allowed types: image/, audio/, video/*, and application/pdf — text/html and other types are rejected; max 10 MB. Optionally attach a note to a contact recording that the file was imported for them.
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": {
"url": "<url>"
},
"name": "import_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public https URL of the file to import. | |
| name | No | Display name for the asset (default: the remote filename). | |
| contact_id | No | Optional — attach an import note to this contact. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| url | No | ||
| asset | No | ||
| error | No | Present only when ok is false. |