pipeshub_search
Search indexed documents by name, topic, or phrase to find matching passages and resolve them to record IDs, file names, or web links for retrieval.
Instructions
Vector / semantic search across the org's indexed documents.
Use this when the user wants to LOCATE a document — by name, topic,
or a phrase to grep for — and to resolve it to a recordId. For
open-ended questions across many documents, use pipeshub_chat
instead, which does the retrieval internally and grounds the answer in
citations.
Typical uses:
Resolve a doc name / topic into a
recordIdforpipeshub_get_record_content— step 1 of any full-document task (summarize, extract, review, "what does the doc say?").Resolve a filename / phrase into a
recordIdforpipeshub_download_record.Show the user a ranked list of matching files when they ask "find / search for X".
Not for structural questions — what is under this epic, which pages are
in this space, what links to this ticket. Ranking by content cannot show
how records relate; use pipeshub_get_record_content mode:"navigate".
A ranked sample, never a complete list. Hits are the top-scoring blocks from the best-matching records — not all blocks of any record, and not every record that matches. Never count them to answer "how many" / "all" / "every"; navigate the record group instead, which reports its real total.
By default it searches everything. To search only some sources, pass
connector ids in apps and collection ids in kb.
Each hit is one matching passage, best match first:
{ recordId, recordName, score, snippet, mimeType, webUrl, ... }.
One record can appear in several hits. Link a record by its webUrl.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kb | No | Collection (knowledge base) ids to search. Get them from `pipeshub_sources`, where `kind` is "knowledgeBase". | |
| apps | No | Connector ids to search (for example a Jira or Google Drive connection). Get them from `pipeshub_sources`, where `kind` is "connector". Collection ids go in `kb`, not here. | |
| limit | No | Number of results. Default 10. Use 5–10 when you only need a `recordId`. | |
| query | Yes | Natural language query. Vector search across the org's indexed records. |