mirror of
https://github.com/Piebald-AI/claude-code-system-prompts.git
synced 2026-05-30 13:45:23 +08:00
30 lines
2.1 KiB
Markdown
30 lines
2.1 KiB
Markdown
<!--
|
|
name: 'Tool Description: ReadFile'
|
|
description: Tool description for reading files
|
|
ccVersion: 2.1.91
|
|
variables:
|
|
- SUPPORTS_RELATIVE_PATHS_FN
|
|
- DEFAULT_READ_LINES_LIMIT
|
|
- CONDITIONAL_LENGTH_NOTE
|
|
- CAT_DASH_N_NOTE
|
|
- READ_FULL_FILE_NOTE
|
|
- CAN_READ_PDF_FILES_FN
|
|
- BASH_TOOL_NAME
|
|
- HAS_ADDITIONAL_READ_NOTE_FN
|
|
- ADDITIONAL_READ_NOTE
|
|
-->
|
|
Reads a file from the local filesystem. You can access any file directly by using this tool.
|
|
Assume this tool is able to read all files on the machine. If the User provides a path to a file assume that path is valid. It is okay to read a file that does not exist; an error will be returned.
|
|
|
|
Usage:
|
|
- ${SUPPORTS_RELATIVE_PATHS_FN()?"The file_path parameter can be relative to cwd (preferred for brevity) or absolute":"The file_path parameter must be an absolute path, not a relative path"}
|
|
- By default, it reads up to ${DEFAULT_READ_LINES_LIMIT} lines starting from the beginning of the file${CONDITIONAL_LENGTH_NOTE}
|
|
${CAT_DASH_N_NOTE}
|
|
${READ_FULL_FILE_NOTE}
|
|
- This tool allows Claude Code to read images (eg PNG, JPG, etc). When reading an image file the contents are presented visually as Claude Code is a multimodal LLM.${CAN_READ_PDF_FILES_FN()?`
|
|
- This tool can read PDF files (.pdf). For large PDFs (more than 10 pages), you MUST provide the pages parameter to read specific page ranges (e.g., pages: "1-5"). Reading a large PDF without the pages parameter will fail. Maximum 20 pages per request.`:""}
|
|
- This tool can read Jupyter notebooks (.ipynb files) and returns all cells with their outputs, combining code, text, and visualizations.
|
|
- This tool can only read files, not directories. To read a directory, use an ls command via the ${BASH_TOOL_NAME} tool.
|
|
- You will regularly be asked to read screenshots. If the user provides a path to a screenshot, ALWAYS use this tool to view the file at the path. This tool will work with all temporary file paths.
|
|
- If you read a file that exists but has empty contents you will receive a system reminder warning in place of file contents.${HAS_ADDITIONAL_READ_NOTE_FN()?ADDITIONAL_READ_NOTE:""}
|