search
Find where a term, decision, or topic appears in project Markdown docs. Returns ranked matching sections with paths, headings, snippets, and tags so agents read only relevant files.
Instructions
Find where something is described in the project's Markdown documents. Returns the best matching sections ranked, each with its path, heading path, line and a short snippet (the same index as TrailMark's Search everywhere), and the tags and description of its document when it has them. Use it to locate documentation before reading whole files, for example to find the section that defines a term or a decision. In a large project, narrow first: pass tags (see list_tags) to look only in the documents that have all of them, then read just the few that fit. Leave query out when you pass tags to get those documents (path, description, tags) instead of sections. Also works when TrailMark is closed, from the project's files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Look only in the documents that have all of these tags, as `list_tags` names them (for example `["adr"]`). Optional. | |
| limit | No | How many sections to return (1 to 25). Ten when left out. With `tags` and no `query` it is how many documents to list instead (up to 100, twenty when left out). | |
| query | No | What to look for: keywords or a short phrase, as you would type them into a search box. Leave it out when you pass `tags`, to get the documents that have those tags instead of sections. |