search_documents
Search a DocuSky database by keyword, corpus, and filters to get matching document metadata with short excerpts, then retrieve full text per hit via get_document.
Instructions
Full-text search one DocuSky database; returns metadata plus a short excerpt per hit.
Full document text is deliberately omitted — call get_document with a hit's
n (and the same db/corpus/query/page_size) to read one in full.
Args:
db: Database title.
query: Search terms. +term requires, -term excludes, .all matches everything.
corpus: Corpus title, or "[ALL]" for every corpus in the database.
page: 1-based page number.
page_size: Hits per page (1-100).
target: "OPEN" or "USER".
excerpt_chars: Characters of body text to preview per hit; 0 disables excerpts.
owner_username: Owner of a friend-shared database, when applicable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db | Yes | ||
| page | No | ||
| query | No | .all | |
| corpus | No | [ALL] | |
| target | No | OPEN | |
| page_size | No | ||
| excerpt_chars | No | ||
| owner_username | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |