Search documents (filter/sort, cross-organization)
wflow_search_documentsSearch documents across one or many organizations using wflow filter syntax, with sorting and auto-pagination.
Instructions
Search / list documents across one or many organizations with the wflow filter syntax and auto-pagination.
• query uses wflow filtering, e.g. orderNo = "Z01", totalAmount > 1000 and totalAmount < 5000, created > "2026-01-01", number = null. Quote the field name-free value as shown.
• sort is a comma list, e.g. created desc,totalAmount.
• Set allOrganizations or organizations for cross-org queries (e.g. 'find documents for these transactions across all organizations').
Returns slim rows by default; set slim=false for full document objects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slim | No | Return only key fields (default). false = full objects. | |
| sort | No | Sort keys, comma-separated, with optional 'desc'. | |
| query | No | wflow filter expression. | |
| maxItems | No | Max documents to return per org (safety cap). | |
| organization | No | Single organization slug. Defaults to WFLOW_ORG. | |
| organizations | No | Explicit list of org slugs (cross-organization). | |
| allOrganizations | No | Operate over ALL accessible organizations. |