upload_media
Upload a local photo or video file (up to 10 GB) into the library, optionally into an album. Sent in resumable chunks, so a dropped connection resumes instead of restarting. Returns the new item. Uploading a file that is already in the library returns the existing item.
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": {
"google_account_email": "<google_account_email>",
"file_path": "<file_path>"
},
"name": "upload_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chunk_mb | No | Chunk size in MB, 1-256. Default 8. | |
| album_key | No | Optional album to add the upload to. | |
| file_name | No | Optional name to store it under (default: the file's own name). | |
| file_path | Yes | Absolute path of a local image or video file. | |
| google_account_email | Yes | The signed-in Google account email whose Google Photos library to use (e.g. the one at /u/1/). Call list_accounts first and confirm with the user; do not guess. | |
| notification_message | No | Short user-facing sentence for this action if the follow-up reply fails. Plain text only; do not mention template syntax or variable names. |