MCP Python Interpreter

by yzfly
Verified

read_file

Read the content of a file within a specified size limit, ensuring secure and controlled access to file data using the MCP Python Interpreter.

Instructions

Read the content of any file, with size limits for safety. Args: file_path: Path to the file (relative to working directory or absolute) max_size_kb: Maximum file size to read in KB (default: 1024) Returns: str: File content or an error message

Input Schema

NameRequiredDescriptionDefault
file_pathYes
max_size_kbNo

Input Schema (JSON Schema)

{ "properties": { "file_path": { "title": "File Path", "type": "string" }, "max_size_kb": { "default": 1024, "title": "Max Size Kb", "type": "integer" } }, "required": [ "file_path" ], "title": "read_fileArguments", "type": "object" }

You must be authenticated.

Other Tools from MCP Python Interpreter

Related Tools

ID: asvhgbf6de