import_asset
Copy a local file or download HTTP(S) image/video/audio into assets/ and register it as a project asset ID; same-kind IDs are replaced, with kind auto-detected if empty.
Instructions
Copy a local file, or download an http(s) image/video/audio (size-capped), into assets/ and register it as
asset id (an existing id of the same kind is replaced). kind image, video, audio or evidence (a page
screenshot you have: its box is the whole picture until you set one with the update_asset edit op); empty
detects it from the file. This is also how music gets in: import a file you are allowed to use.
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": {
"project": "<project>",
"id": "<id>",
"source": "<source>"
},
"name": "import_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| kind | No | ||
| source | Yes | ||
| project | Yes |