Add a file to Files from a link
add_a_file_from_a_linkPut a file in the workspace's Files, as the Files page's upload does, from a public https link: at most 10 MB, an address on the public internet only, its content type kept; a link that opens a web page is refused. Returns the file's id and name; give the id to update_form's delivery_file_ids to send it to everyone who submits that form. name names it; otherwise the server's own file name or the link's last part.
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": "add_a_file_from_a_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The https link to the file itself | |
| name | No | The file's name in Files (optional) |