# find_file_in_folder (https://sellersheetai.com/docs/mcp-api/tools/find_file_in_folder)

> Find the first Google Sheet in a folder whose name contains a substring — only spreadsheets match; for any other file type use search_drive_files with rawQuery and parentId.

Access: **READ** · toolset google_workspace · family null

## Call it

MCP tool call:

```json
{
  "name": "find_file_in_folder",
  "arguments": {
    "folderId": "<folderId>",
    "nameContains": "<nameContains>"
  }
}
```

Tool API (early access — contact us):

```bash
curl -X POST https://api.sellersheetai.com/api/v1/tools/find_file_in_folder \
  -H "Authorization: Bearer $SELLERSHEET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"folderId":"<folderId>","nameContains":"<nameContains>"}'
```

## Arguments

| Name | Type | Required | Description |
|---|---|---|---|
| `folderId` | string | yes | Drive folder ID to search within. |
| `nameContains` | string | yes | Substring to match in file names. |

## Result

- `fileId` — Spreadsheet ID of first match, or null if not found.
- `found` — Boolean indicating if a match was found.

## Example

- find_file_in_folder(folderId="1ABC...", nameContains="report_2026")