typst_grep_project
Search text or regular expressions across Typst project files and return matching lines with file paths, line numbers, and optional context.
Instructions
Search for text or regular expressions across files in a https://typst.app project. Returns matching lines with file paths, line numbers, and optional surrounding context lines.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | No | Optional glob pattern to filter files (e.g. '*.typ' or '*.bib') | |
| path | No | Optional directory or file path to restrict search (e.g. 'chapters/' or 'main.typ') | |
| limit | No | Maximum number of matches to return (default: 100) | |
| context | No | Number of lines to show before and after each match (default: 0) | |
| literal | No | Treat pattern as literal string instead of regex (default: false) | |
| pattern | Yes | Search pattern (regular expression or literal string) | |
| projectId | Yes | The Typst project ID | |
| ignoreCase | No | Case-insensitive search (default: false) |