search_docs
Search Pine Script v6 documentation for relevant sections. Multi-word queries require all terms. Returns previews with hints to retrieve full content.
Instructions
Search Pine Script v6 documentation and return matching sections.
Finds sections containing the query and returns previews with get_section() call hints so you can read the full content.
Multi-word queries use AND logic: all terms must appear in the section (not necessarily on the same line).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search terms (case-insensitive). Multi-word queries match sections containing ALL terms. | |
| max_results | No | Maximum sections to return (default: 5) |