Mirascope Frog Logo
Mirascope
DocsBlogPricingCloud
⌘K
Type to search
⌘Kto search
Escto close
mirascope
v2.0.2
1.4k
Join our
WelcomeLearnGuidesAPI Referencev1 (Legacy)
DocsGuidesAPI
Overview
Core
Llm
CallCall ResponseCall Response ChunkContextOverrideStreamTool
Mcp
Client
Retries
FallbackTenacity
Tools
Docker OperationFile System
# mirascope.tools.system._file_system ## <ApiType type="Module" path="tools/system/file_system" symbolName="_file_system" /> _file_system ## <ApiType type="Class" path="tools/system/file_system" symbolName="FileSystemToolKitConfig" /> FileSystemToolKitConfig Configuration for file_system toolkit **Bases:** <TypeLink type={{"type_str": "_ConfigurableToolConfig", "description": null, "kind": "simple", "doc_identifier": "_ConfigurableToolConfig"}} /> <AttributesTable attributes={[ { "name": "max_file_size", "type_info": { "type_str": "int", "description": null, "kind": "simple", "doc_url": "https://docs.python.org/3/library/functions.html#int" } }, { "name": "allowed_extensions", "type_info": { "type_str": "list[str]", "description": null, "kind": "generic", "base_type": { "type_str": "list", "description": null, "kind": "simple", "doc_url": "https://docs.python.org/3/library/stdtypes.html#list" }, "parameters": [ { "type_str": "str", "description": null, "kind": "simple", "doc_url": "https://docs.python.org/3/library/stdtypes.html#str" } ] } } ]} /> ## <ApiType type="Class" path="tools/system/file_system" symbolName="FileOperation" /> FileOperation Base class for file system operations. **Bases:** <TypeLink type={{"type_str": "ConfigurableTool[FileSystemToolKitConfig]", "description": null, "kind": "generic", "base_type": {"type_str": "ConfigurableTool", "description": null, "kind": "simple", "doc_identifier": "ConfigurableTool"}, "parameters": [{"type_str": "FileSystemToolKitConfig", "description": null, "kind": "simple", "doc_url": "/docs/v1/api/tools/system/file_system#filesystemtoolkitconfig"}]}} />, <TypeLink type={{"type_str": "ABC", "description": null, "kind": "simple", "doc_identifier": "ABC"}} /> <AttributesTable attributes={[ { "name": "base_directory", "type_info": { "type_str": "Path", "description": null, "kind": "simple", "doc_identifier": "Path" } } ]} /> ## <ApiType type="Class" path="tools/system/file_system" symbolName="FileSystemToolKit" /> FileSystemToolKit ToolKit for file system operations. Read, write, list, create, and delete files and directories. **Bases:** <TypeLink type={{"type_str": "ConfigurableToolKit[FileSystemToolKitConfig]", "description": null, "kind": "generic", "base_type": {"type_str": "ConfigurableToolKit", "description": null, "kind": "simple", "doc_identifier": "ConfigurableToolKit"}, "parameters": [{"type_str": "FileSystemToolKitConfig", "description": null, "kind": "simple", "doc_url": "/docs/v1/api/tools/system/file_system#filesystemtoolkitconfig"}]}} /> <AttributesTable attributes={[ { "name": "config", "type_info": { "type_str": "FileSystemToolKitConfig", "description": null, "kind": "simple", "doc_url": "/docs/v1/api/tools/system/file_system#filesystemtoolkitconfig" } }, { "name": "base_directory", "type_info": { "type_str": "Path", "description": null, "kind": "simple", "doc_identifier": "Path" } } ]} /> ## <ApiType type="Class" path="tools/system/file_system" symbolName="ReadFile" /> ReadFile Tool for reading file contents. **Bases:** <TypeLink type={{"type_str": "FileOperation", "description": null, "kind": "simple", "doc_url": "/docs/v1/api/tools/system/file_system#fileoperation"}} /> <AttributesTable attributes={[ { "name": "path", "type_info": { "type_str": "str", "description": null, "kind": "simple", "doc_url": "https://docs.python.org/3/library/stdtypes.html#str" } } ]} /> ## <ApiType type="Function" path="tools/system/file_system" symbolName="call" /> call Read and return file contents. <ParametersTable parameters={[ { "name": "self", "type_info": { "type_str": "Any", "description": null, "kind": "simple", "doc_identifier": null } } ]} /> <ReturnTable returnType={{ "type_info": { "type_str": "str", "description": null, "kind": "simple", "doc_url": "https://docs.python.org/3/library/stdtypes.html#str" }, "description": "File contents or error message if operation fails" }} /> ## <ApiType type="Class" path="tools/system/file_system" symbolName="WriteFile" /> WriteFile Tool for writing content to a file. **Bases:** <TypeLink type={{"type_str": "FileOperation", "description": null, "kind": "simple", "doc_url": "/docs/v1/api/tools/system/file_system#fileoperation"}} /> <AttributesTable attributes={[ { "name": "path", "type_info": { "type_str": "str", "description": null, "kind": "simple", "doc_url": "https://docs.python.org/3/library/stdtypes.html#str" } }, { "name": "content", "type_info": { "type_str": "str", "description": null, "kind": "simple", "doc_url": "https://docs.python.org/3/library/stdtypes.html#str" } } ]} /> ## <ApiType type="Function" path="tools/system/file_system" symbolName="call" /> call Write content to file and return status. <ParametersTable parameters={[ { "name": "self", "type_info": { "type_str": "Any", "description": null, "kind": "simple", "doc_identifier": null } } ]} /> <ReturnTable returnType={{ "type_info": { "type_str": "str", "description": null, "kind": "simple", "doc_url": "https://docs.python.org/3/library/stdtypes.html#str" }, "description": "Success message or error message if operation fails" }} /> ## <ApiType type="Class" path="tools/system/file_system" symbolName="ListDirectory" /> ListDirectory Tool for listing directory contents. **Bases:** <TypeLink type={{"type_str": "FileOperation", "description": null, "kind": "simple", "doc_url": "/docs/v1/api/tools/system/file_system#fileoperation"}} /> <AttributesTable attributes={[ { "name": "path", "type_info": { "type_str": "str", "description": null, "kind": "simple", "doc_url": "https://docs.python.org/3/library/stdtypes.html#str" } } ]} /> ## <ApiType type="Function" path="tools/system/file_system" symbolName="call" /> call List directory contents and return formatted string. <ParametersTable parameters={[ { "name": "self", "type_info": { "type_str": "Any", "description": null, "kind": "simple", "doc_identifier": null } } ]} /> <ReturnTable returnType={{ "type_info": { "type_str": "str", "description": null, "kind": "simple", "doc_url": "https://docs.python.org/3/library/stdtypes.html#str" }, "description": "Formatted directory listing or error message if operation fails" }} /> ## <ApiType type="Class" path="tools/system/file_system" symbolName="CreateDirectory" /> CreateDirectory Tool for creating directories. **Bases:** <TypeLink type={{"type_str": "FileOperation", "description": null, "kind": "simple", "doc_url": "/docs/v1/api/tools/system/file_system#fileoperation"}} /> <AttributesTable attributes={[ { "name": "path", "type_info": { "type_str": "str", "description": null, "kind": "simple", "doc_url": "https://docs.python.org/3/library/stdtypes.html#str" } } ]} /> ## <ApiType type="Function" path="tools/system/file_system" symbolName="call" /> call Create directory and return status. <ParametersTable parameters={[ { "name": "self", "type_info": { "type_str": "Any", "description": null, "kind": "simple", "doc_identifier": null } } ]} /> <ReturnTable returnType={{ "type_info": { "type_str": "str", "description": null, "kind": "simple", "doc_url": "https://docs.python.org/3/library/stdtypes.html#str" }, "description": "Success message or error message if operation fails" }} /> ## <ApiType type="Class" path="tools/system/file_system" symbolName="DeleteFile" /> DeleteFile Tool for deleting files. **Bases:** <TypeLink type={{"type_str": "FileOperation", "description": null, "kind": "simple", "doc_url": "/docs/v1/api/tools/system/file_system#fileoperation"}} /> <AttributesTable attributes={[ { "name": "path", "type_info": { "type_str": "str", "description": null, "kind": "simple", "doc_url": "https://docs.python.org/3/library/stdtypes.html#str" } } ]} /> ## <ApiType type="Function" path="tools/system/file_system" symbolName="call" /> call Delete file and return status. <ParametersTable parameters={[ { "name": "self", "type_info": { "type_str": "Any", "description": null, "kind": "simple", "doc_identifier": null } } ]} /> <ReturnTable returnType={{ "type_info": { "type_str": "str", "description": null, "kind": "simple", "doc_url": "https://docs.python.org/3/library/stdtypes.html#str" }, "description": "Success message or error message if operation fails" }} /> ## <ApiType type="Function" path="tools/system/file_system" symbolName="validate_base_directory" /> validate_base_directory Validates that the base directory exists and is a directory. <ParametersTable parameters={[ { "name": "cls", "type_info": { "type_str": "Any", "description": null, "kind": "simple", "doc_identifier": null } }, { "name": "v", "type_info": { "type_str": "Path", "description": null, "kind": "simple", "doc_identifier": "Path" }, "description": "The path to validate" } ]} /> <ReturnTable returnType={{ "type_info": { "type_str": "Path", "description": null, "kind": "simple", "doc_identifier": "Path" }, "description": "The validated path" }} />

Provider

On this page

Provider

On this page

© 2026 Mirascope. All rights reserved.

Mirascope® is a registered trademark of Mirascope, Inc. in the U.S.

Privacy PolicyTerms of Use