copy_drive_file
Copy a file, returns new file ID.
writeGoogle Sheets, Docs & Drive
Call it
In an AI client (MCP)
{
"name": "copy_drive_file",
"arguments": {
"fileId": "<fileId>",
"name": "<name>"
}
}From code (Tool API)
curl -X POST https://api.sellersheetai.com/api/v1/tools/copy_drive_file \
-H "Authorization: Bearer $SELLERSHEET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"fileId":"<fileId>","name":"<name>"}'Early access — the Tool API is open on request, contact us.
Arguments
| Name | Type | Description |
|---|---|---|
fileIdrequired | string | the Drive file ID. |
namerequired | string | Name for the copied file. |
parentId | string | Optional target folder ID. |
convertTo | string | Optional Google Workspace target mimeType — Drive converts on copy. E.g. copy an .xlsx Drive file with convertTo='application/vnd.google-apps.spreadsheet' to get a native Google Sheet copy (the source file is untouched). |
Result
Every tool answers {notification, data, human_action}; data carries:
fileId— New file ID.
Example
copy_drive_file(fileId="1XYZ...", name="Copy of Report", parentId="1ABC...")
copy_drive_file(fileId="<xlsx id>", name="Q3 Model",
convertTo="application/vnd.google-apps.spreadsheet")