search_documents
Search across RSpace documents using text, tags, dates, or multiple criteria to find specific research content and data efficiently.
Instructions
Generic search tool for RSpace documents with flexible search options
Usage: Search across all your RSpace documents using various criteria
Parameters:
query: The search term(s) to look for
search_type: "simple" for basic search, "advanced" for multi-criteria search
query_types: List of search types to use (for advanced search):
"global": Search across all document content and metadata
"fullText": Search within document text content
"tag": Search by document tags
"name": Search by document names/titles
"created": Search by creation date (use ISO format like "2024-01-01")
"lastModified": Search by modification date
"form": Search by form type
"attachment": Search by attachments
operator: "and" (all criteria must match) or "or" (any criteria can match)
order_by: Sort results by field (e.g., "lastModified desc", "name asc")
page_number: Page number for pagination (0-based)
page_size: Number of results per page (max 200)
include_content: Whether to fetch full document content (slower but more complete)
Returns: Dictionary with search results and metadata
Examples:
Simple text search: search_documents("PCR protocol")
Search by tags: search_documents("experiment", search_type="advanced", query_types=["tag"])
Multi-criteria search: search_documents("DNA", search_type="advanced", query_types=["fullText", "tag"], operator="or")
Input Schema
Name | Required | Description | Default |
---|---|---|---|
include_content | No | ||
operator | No | and | |
order_by | No | lastModified desc | |
page_number | No | ||
page_size | No | ||
query | Yes | ||
query_types | No | ||
search_type | No | simple |