Search by Tag
search_by_tagFind all notes tagged with a specific tag, including nested sub-tags. Supports #hashtags and YAML frontmatter. Returns matching note paths with optional content previews. Use to collect notes by topic, area, or workflow stage.
Instructions
Find all notes tagged with a specific tag, including nested sub-tags (searching 'project' matches both #project and #project/alpha). Detects tags from both inline #hashtags and YAML frontmatter. Returns matching note paths with optional content previews. Use to collect notes belonging to a topic, area, or workflow stage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | Tag to search for, with or without # prefix (e.g., 'project' or '#project'). Matches nested tags like 'project/alpha'. | |
| includeContent | No | If true, include the first 200 characters of each matching note as a preview (default: false) | |
| maxResults | No | Maximum number of matching notes to return (1-1000, default: 100) |