Download an F2H file
download_fileGives a curl command that downloads a file, or a folder as a ZIP, to the machine where you run it: the person's own files, files sent to their inbox, or someone else's shared link. Needs a paid F2H plan; on other plans it gives the file's page, where the person downloads it. Run the command at once, where the file is needed. With inline true, a file of up to 1 MB comes in the answer itself instead: use it from the start when your machine reaches only listed sites or you cannot run commands. Docs: https://f2h.io/en/agents
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": "download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| link | No | An F2H link (or give file_id or folder_id) | |
| path | No | Where to save it; the file's own name by default | |
| inline | No | The file itself in the answer, up to 1 MB, instead of a command | |
| file_id | No | ||
| password | No | A file's password, when it has one and the person gave it | |
| folder_id | No | A folder, downloaded as one ZIP |