Import from Google Drive
import_from_google_driveImport Google Drive folders into a Playbook folder. Use this for files that live in the user's Google Drive, including private folders — upload_from_url cannot reach those. Google Drive and Dropbox are connected ONCE, by a person, in the Playbook web app — there is no tool that connects them. Connections belong to a Playbook user: this server only sees connections made by the same Playbook account it is signed in as. When list_import_sources has no source with the needed provider, its connect_url is where a person connects that service; the source is listed once they have. Every Google Drive folder is checked against the connected Google account first; one it cannot see is refused with the account's email, which usually means the folder must be shared with that account. RE-SYNC: importing the same Drive folder into the same folder_token skips files already there unchanged, so a recurring sync should reuse the Playbook folder. But a file changed in Drive is added as a SECOND asset next to the old one, and renaming the Drive folder or its Playbook folder imports that folder again in full. WHERE FILES LAND: each source folder becomes a Playbook folder NAMED AFTER IT inside the target folder, with its own subfolders nested below — not the target folder itself. Find it with list_subfolders on folder_token, or list_assets with nested_assets. The import is ASYNCHRONOUS: this returns a run in pending; poll get_import until status is completed or canceled. Plans without unrestricted imports allow one active import per workspace; the refusal names the active import's token, so poll that instead of retrying. Storage overage cannot be agreed to here: the call is refused when the workspace has no storage left before overage it has not agreed to, and the import is canceled (overlimit) before storing a file that would cross it. A rate-limit error carries a retry delay — wait that long. Requires a write-scope token and workspace owner/admin permission.
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": {
"source_token": "<source_token>",
"source_folders": "<source_folders>"
},
"name": "import_from_google_drive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder_token | No | Playbook folder to import into; each Google Drive folder lands in a folder inside it. Omit to create a new top-level folder named 'Google Drive import (date)'; pass the folder from an earlier run to re-sync it. A deleted folder is not found. | |
| organization | No | Workspace slug, as returned by list_organizations. Omit it when the account has a single workspace — it is then resolved from your token. Pass it only when the account has several, or when you mean a workspace other than the obvious one. | |
| source_token | Yes | Token of a `google_drive` source from list_import_sources | |
| source_folders | Yes | 1–20 Google Drive folder URLs (https://drive.google.com/drive/folders/…) or bare folder IDs. Folders only — a file URL is refused. |