LocalFileSystemTools enables agents to write files to the local file system with automatic directory management.
Parameter | Type | Default | Description |
---|---|---|---|
target_directory | Optional[str] | None | Default directory to write files to. Uses current directory. |
default_extension | str | "txt" | Default file extension to use if none specified. |
enable_write_file | bool | True | Enable file writing functionality. |
Function | Description |
---|---|
write_file | Write content to a local file with customizable options. |