upload_file_from_url
Upload a file from a remote URL into ERPNext, with options to attach it to a specific document and control privacy.
Instructions
Upload a file to ERPNext from a URL.
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": {
"file_url": "<file_url>"
},
"name": "upload_file_from_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_url | Yes | Source URL to fetch the file from | |
| filename | No | Optional name for the file (will be inferred from URL if not provided) | |
| is_private | No | Whether file should be private (default True) | |
| attached_to_name | No | Optional document name to attach file to | |
| attached_to_doctype | No | Optional DocType to attach file to |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||