rename_drive_file

Rename a file.

writeGoogle Sheets, Docs & Drive

Call it

In an AI client (MCP)

tools/call
{
  "name": "rename_drive_file",
  "arguments": {
    "fileId": "<fileId>",
    "newName": "<newName>"
  }
}

From code (Tool API)

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

Arguments

NameTypeDescription
fileIdrequiredstringthe Drive file ID.
newNamerequiredstringNew file name.

Result

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

  • success — Boolean indicating successful rename.

Example

rename_drive_file(fileId="1XYZ...", newName="Updated Report 2026")

On this page

Actions

View as Markdown

Ask an assistant

Ask ChatGPTAsk Claude