query_database
Retrieve Notion database rows with optional filters, sorting, and limits. Specify a database by alias, URL, ID, or title to get matching entries.
Instructions
Rows of a Notion database, as {title, url, properties}. ref: an alias, a notion.so URL, an id, or an exact database title. filter: property name -> value, combined with AND. Text properties match by substring, everything else by equality. Names must come from get_database_schema. sort: {"property": name, "direction": "asc" | "desc"}. limit: maximum rows to return.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | ||
| sort | No | ||
| limit | No | ||
| filter | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |