find_or_create_folder

Find a subfolder by name inside parentId, or create it if missing.

writeGoogle Sheets, Docs & Drive

Call it

In an AI client (MCP)

tools/call
{
  "name": "find_or_create_folder",
  "arguments": {
    "name": "<name>",
    "parentId": "<parentId>"
  }
}

From code (Tool API)

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

Arguments

NameTypeDescription
namerequiredstringFolder name to find or create.
parentIdrequiredstringDrive folder ID to search within.

Result

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

  • folderId — The folder ID (existing or newly created).

Example

find_or_create_folder(name="Reports", parentId="1ABC...")

On this page

Actions

View as Markdown

Ask an assistant

Ask ChatGPTAsk Claude