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)
{
"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
| Name | Type | Description |
|---|---|---|
namerequired | string | Folder name to find or create. |
parentIdrequired | string | Drive 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...")