Reads the entire content of a specified file as UTF-8 text. Accepts relative or absolute paths. Relative paths are resolved against the session default set by `set_filesystem_default`.
Sets a default absolute path for the current session. Relative paths used in other filesystem tools (like readFile) will be resolved against this default. The default is cleared on server restart.
Writes content to a specified file. Creates the file (and necessary directories) if it doesn't exist, or overwrites it if it does. Accepts relative or absolute paths (resolved like readFile).
Performs targeted search-and-replace operations within an existing file using an array of {search, replace} blocks. Preferred for smaller, localized changes. For large-scale updates or overwrites, consider using `write_file`....
Lists files and directories within the specified directory. Optionally lists recursively and returns a tree-like structure. Includes an optional `maxEntries` parameter (default 50) to limit the number of items returned.
Removes a specific file. Accepts relative or absolute paths.
Removes a directory. Optionally removes recursively. Accepts relative or absolute paths.
Creates a directory. Optionally creates parent directories. Accepts relative or absolute paths.
Moves or renames a file or directory. Accepts relative or absolute paths for source and destination.
Copies a file or directory to a new location. Accepts relative or absolute paths. Defaults to recursive copy for directories.
Logging level (e.g., info, debug, error)
Optional base directory restricting file operations