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)
{
"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
| Name | Type | Description |
|---|---|---|
fileIdrequired | string | the Drive file ID. |
rolerequired | string | 'reader', 'commenter' or 'writer'. |
email | string | Email address to share with (for user sharing). |
domain | string | Domain 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")