Google Drive
GoogleDrive_CheckFileAccess
Check whether this app can already read each of several Drive files, in one batched pre-flight call, before attempting to read them. Use this when the user references multiple files so any that are not yet accessible can be granted together in a single picker step, instead of hitting a separate access error and grant prompt for each one. Each input may be a bare file id or a full Google Drive/Workspace URL (documents, spreadsheets, slides, PDFs, images, folders — any type). Returns ``files`` (a per-id list with ``accessible``, the ``title`` and ``mime_type`` when the file was read, and a ``reason`` when not usable), ``all_accessible`` (true only when every id is already accessible), ``connected_account_email`` (the connected Google account, empty when unknown), and a ``grant`` block. ``grant`` is empty when nothing needs granting; otherwise it lists the ungranted ids (``ungranted_ids``) plus, when the inline picker is enabled, a single picker URL covering them all. A ``reason`` of ``not_accessible_or_not_found`` is either a file not granted to this app yet or one that does not exist (indistinguishable here) — the picker resolves the former. ``invalid_reference`` is an input that is not a Drive id or link at all; ask the user to re-check it. ``error`` is a transient server-side failure (a timeout or 5xx) that the picker cannot fix; the same inputs may be retried later.
Remote (network-hosted)
Other tools also called GoogleDrive_CheckFileAccess?
See providers with this name
Input Schema
{
"type": "object",
"properties": {
"files": {
"type": "array",
"items": {
"type": "string"
},
"description": "The files to check access for, each given as a bare Drive file id or a full Google Drive/Workspace URL (the id is extracted from the URL). Provide at most 50 per call; split larger lists across multiple calls."
}
}
}