search_pages
Search Notion pages and databases by query, with filters for page or database type and auto-pagination to fetch all results.
Instructions
Search Notion pages and databases.
Args: query: Search query filter_type: Optional filter - "page" or "database" page_size: Number of results per page (max 100) start_cursor: Cursor for pagination fetch_all: If True, auto-paginate to fetch ALL results. Default True.
Returns: Dict with: - results: List of matching pages/databases - total_count: Number of results - has_more: Whether more results exist (only when fetch_all=False) - next_cursor: Cursor for next page (only when fetch_all=False and has_more=True)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| fetch_all | No | ||
| page_size | No | ||
| filter_type | No | ||
| start_cursor | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||