Read relevant files
read_relevant_filesRead only task-relevant files without loading the whole project. Skip sensitive content, truncate large files, and rank by lexical relevance unless you pass explicit candidates.
Instructions
Read the files most relevant to a task without loading the whole project. Either pass candidateFiles, or let the tool rank files by lexical relevance. Content is truncated, secret-masked, and sensitive files are skipped by default. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxFiles | No | ||
| projectPath | Yes | Absolute path to the project root. | |
| allowSensitive | No | Allow reading sensitive files (.env, keys). Off by default. | |
| candidateFiles | No | Optional explicit list of project-relative files to read. | |
| maxBytesPerFile | No | ||
| taskDescription | Yes | What you are trying to do; used to rank file relevance. |