copy_drive_file

Copy a file, returns new file ID.

writeGoogle Sheets, Docs & Drive

Call it

In an AI client (MCP)

tools/call
{
  "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

NameTypeDescription
fileIdrequiredstringthe Drive file ID.
namerequiredstringName for the copied file.
parentIdstringOptional target folder ID.
convertTostringOptional 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")

On this page

Actions

View as Markdown

Ask an assistant

Ask ChatGPTAsk Claude