Query pages
query_pagesQuery Page summaries, with a body preview, in one workspace. By default it returns root Pages; includeSubPages returns Pages at every depth, parentId returns one Page's direct children, and sort orders the results. viewId runs a saved View instead; only workspaceId, limit, cursor, calendar, today, and timeZone may accompany it. Calendar scopes use the View's dateProperty: scheduled takes inclusive start/end dates (at most 42 days) and returns Pages whose span, through endDateProperty when set, overlaps them; unscheduled returns unset values, incompatible returns non-date values. Each scope pages separately with nextCursor. A batch too large for one response returns fewer Pages than limit, with nextCursor for the rest. PAGINATION_RESTART_REQUIRED means the cursor no longer applies and the query starts over without it.
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": {
"workspaceId": "<workspaceId>"
},
"name": "query_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | ||
| sort | No | Order results by title, createdAt, updatedAt, position (sub-page order), a typed property, or when a property changed. Omit for the default order. | |
| limit | No | ||
| today | No | The user's local date as YYYY-MM-DD, used to resolve relativeDate filter values. Defaults to today in timeZone, or the current UTC date. | |
| cursor | No | ||
| filter | No | Nested AND/OR expression over Pages at every hierarchy depth. Use parent conditions to constrain hierarchy explicitly. | |
| search | No | ||
| typeId | No | Filter by one Page Type ID, use null for Pages without a Type, or omit for any Type. | |
| viewId | No | ||
| calendar | No | ||
| parentId | No | Use null for root Pages or provide a Page ID for its direct children, ordered by position. Omit when includeSubPages is true. | |
| timeZone | No | The user's IANA time zone, such as Europe/Rome, which decides the local date a property changed on for changed filters. Defaults to UTC. | |
| workspaceId | Yes | ||
| deletionFilter | No | ||
| propertyEquals | No | Require every supplied property to exactly match its typed value. List values must match completely, including item order. | |
| includeSubPages | No | Opt in to all Pages, including nested sub-pages, ordered by most recently updated, or by best title match when searching. Omit for ordinary list Pages requests so only root Pages are returned. | |
| propertyContains | No | Require every supplied list property to contain all requested items. List item order does not matter. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||