download_file
Download photos, videos, or files from ParentSquare URLs to your local disk, returning the saved file path. Works with URLs from list_photos, list_files, or get_post attachments.
Instructions
Download a photo, video, or file to local disk from a ParentSquare URL.
Returns the local file path where the file was saved. Use URLs from list_photos, list_files, or get_post attachment results.
Args: url: The file URL (from list_photos, list_files, or get_post results) filename: Optional custom filename. If not provided, uses the original filename from the 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": {
"url": "<url>"
},
"name": "download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| filename | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |