share_drive_file

Share a file with one person (email) or a whole domain (domain; email wins if both are passed).

writeGoogle Sheets, Docs & Drive

Drive sends no notification email — tell the person yourself.

Call it

In an AI client (MCP)

tools/call
{
  "name": "share_drive_file",
  "arguments": {
    "fileId": "<fileId>",
    "role": "<role>"
  }
}

From code (Tool API)

curl -X POST https://api.sellersheetai.com/api/v1/tools/share_drive_file \
  -H "Authorization: Bearer $SELLERSHEET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"fileId":"<fileId>","role":"<role>"}'
Early access — the Tool API is open on request, contact us.

Arguments

NameTypeDescription
fileIdrequiredstringthe Drive file ID.
rolerequiredstring'reader', 'commenter' or 'writer'.
emailstringEmail address to share with (for user sharing).
domainstringDomain to share with (for domain sharing).

Result

Every tool answers {notification, data, human_action}; data carries:

  • permissionId — Permission ID.

Example

share_drive_file(fileId="1XYZ...", role="reader", email="[email protected]")
share_drive_file(fileId="1XYZ...", role="reader", domain="example.com")

On this page

Actions

View as Markdown

Ask an assistant

Ask ChatGPTAsk Claude