drive_upload
Upload a file from this workspace's files (by file_id) into a Google Drive folder e.g. a client's receipt or contract. Returns the new file's id and link. The folder must be shared with the workspace's Drive address as Editor (drive.folders shows the address). A folder in a Shared Drive is written by the Drive address; a folder in a personal My Drive needs Google connected in the workspace's integrations (the file is then uploaded as that person and moved in). Files up to 100 MB. Uploading twice creates two files: after outcome_unknown check the folder first.
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_id": "<file_id>",
"folder": "<folder>"
},
"name": "drive_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name in Drive. Default: the file's own name. | |
| folder | Yes | Drive id or pasted link of the destination folder. | |
| file_id | Yes | Id of a file in the workspace's files. | |
| mime_type | No | Content type. Default: the stored one. | |
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. |