ollie/data/tools/file_read.meta

28 lines
1.9 KiB
Plaintext

{
"description": "Read an existing file or documentation file with numbered lines before editing. Use to inspect source code, Markdown, architecture docs, configuration, notes, and existing content before an update. Typical requests include read the docs, inspect the architecture documentation, review a file, find the relevant section, or examine code before editing. Prefer focused line ranges for large files.",
"keywords": ["read an existing file", "read existing documentation", "read the architecture docs", "inspect architecture documentation", "review existing documentation", "find the relevant documentation", "find the relevant section", "locate existing content", "read before editing", "inspect before updating", "review before changing", "understand existing implementation", "examine source before editing", "read Markdown before updating", "inspect configuration before changing"],
"prompt": "## file_read\n\nRead a file with line numbers. Prefer segments over full reads.\n\n**Args**: `path` (required), optional `start` and `end` line numbers\n\n- `start`/`end`: 1-indexed line numbers, inclusive. Use integers. Max segment: 2000 lines.\n- No `start`/`end`: reads up to 500 lines from line 1.\n\n```\nfile_read(path=\"<ABSOLUTE_PATH_FROM_PWD>\")\nfile_read(path=\"<ABSOLUTE_PATH_FROM_PWD>\", start=100, end=200)\n```\n\n- Use `start`/`end` as integers even though they represent line numbers.\n\n**Constraints**: Absolute paths only.",
"args": {
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string",
"description": "Absolute path to file"
},
"start": {
"type": "integer",
"description": "1-indexed start line (default: 1). Use an integer."
},
"end": {
"type": "integer",
"description": "1-indexed end line, inclusive (max 2000 line segment). Use an integer."
}
}
},
"tier": "cold",
"scope": "read"
}