query
Search Logseq pages and blocks using DSL expressions for property, tag, task, and logical filters. Returns text or JSON results, including block UUIDs and page info for deep linking.
Instructions
Execute a Logseq DSL query to search pages and blocks. Supports property queries, tag queries, task queries, and logical combinations. Raw datalog ({:query ...} / [:find ...]) is not supported. See https://docs.logseq.com/#/page/queries for query syntax.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return | |
| query | Yes | Logseq DSL query string (e.g., '(page-property status active)', '(and (task todo) (page [[Project]]))') | |
| format | No | Output format (text or json). JSON returns raw result objects including block UUIDs and page info for deep linking. | text |
| result_type | No | Filter results by type | all |