The text editor tool gives Claude the ability to read files, list directories, create new files, and make targeted text replacements in your project. Instead of pasting file contents into the chat manually, Claude can explore the project structure on its own and read the files it needs to answer your question.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/barryceelen/claudette/llms.txt
Use this file to discover all available pages before exploring further.
Enabling the text editor tool
The text editor tool is disabled by default. To enable it, open Preferences > Package Settings > Claudette > Settings and add:What Claude can do
With the text editor tool enabled, Claude can run the following operations:view — read a file or list a directory
view — read a file or list a directory
Claude reads the content of a file, with optional line-range limits, or lists the entries in a directory. This is how Claude explores your project structure before answering.
str_replace — replace text in a file
str_replace — replace text in a file
Claude replaces an exact string in a file with new text. The match must be unique—if the string appears more than once, the operation fails and Claude is told to provide more surrounding context.
create — create a new file
create — create a new file
Claude creates a file at a given path with specified content. The file must not already exist.
insert — insert text after a line number
insert — insert text after a line number
Claude inserts text after a specific line number. Use line 0 to insert at the beginning of the file.
File access and security
Claudette restricts all file operations to allowed roots. By default the allowed roots are the folders open in the current Sublime Text window (window.folders()). If no project folders are open, Claudette falls back to the directory of the active file.
Adding extra roots: Use text_editor_tool_roots to extend access to additional directories:
../) is blocked entirely.
Limiting file read size
By default there is no limit on how many characters Claude can read from a file. For large files you can cap the read size:0 (or omit the setting) for no limit. When a file is truncated, Claude receives a ... (truncated) notice at the end of the content.
Workflow
When you start a conversation with the text editor tool enabled, Claudette automatically includes a summary of your project’s top-level directory structure in the system message. Claude uses this to orient itself before you ask anything. From there, a typical interaction looks like:You ask a question
Ask about a bug, request a refactor, or ask Claude to add a function. You don’t need to paste any code.
Claude reads the project
Claude uses
view to list directories and read files it needs to understand the context.Claude makes edits
If you asked for a change, Claude uses
str_replace, create, or insert to write directly to disk.