/ src / tools / FileReadTool / prompt.ts
prompt.ts
1  import { NotebookReadTool } from '../NotebookReadTool/NotebookReadTool.js'
2  
3  const MAX_LINES_TO_READ = 2000
4  const MAX_LINE_LENGTH = 2000
5  
6  export const DESCRIPTION = 'Read a file from the local filesystem.'
7  export const PROMPT = `Reads a file from the local filesystem. The file_path parameter must be an absolute path, not a relative path. By default, it reads up to ${MAX_LINES_TO_READ} lines starting from the beginning of the file. You can optionally specify a line offset and limit (especially handy for long files), but it's recommended to read the whole file by not providing these parameters. Any lines longer than ${MAX_LINE_LENGTH} characters will be truncated. For image files, the tool will display the image for you. For Jupyter notebooks (.ipynb files), use the ${NotebookReadTool.name} instead.`