drive_import
Bring a file from the registered Google Drive folders into the workspace's files, where search, knowledge and files.read can use it. A Google Doc is stored as .docx, a Sheet as .xlsx, Slides as .pdf (up to 10 MB); any other file as it is. A file up to 50 MB is there when the call answers. A LARGER file (a video of several gigabytes) is copied in the background: the call answers at once with status: "importing" and the file_id; call drive.import with the same file again to see bytes_done, and when the copy is over it answers with the finished file (status: "ready"), whose download link files.info gives. Such a file is stored only: it is not searchable. Importing the same file again after it changed in Drive adds a new version of the same file_id; if it has not changed, nothing is downloaded (unchanged: true). A change made in Google Docs by someone else in the last few minutes may not be seen as a change yet; importing again a few minutes later picks it up. file is a Drive id or a pasted link.
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": "<file>"
},
"name": "drive_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Drive id or pasted link of the file. | |
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. |