upload
Attach allowed local files to a browser file input by reference, as if the user selected them.
Instructions
Attach files to a file input (by ref), as if the user picked them.
paths are absolute file paths. Only files in the folders the user listed in upload_dirs
in zenpilot's config are allowed. Uploads are logged.
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": {
"ref": "<ref>",
"paths": "<paths>"
},
"name": "upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | ||
| paths | Yes |