write_python_file
Create or update Python files directly within a working directory or system-wide. Specify file path, content, and overwrite option to manage Python scripts efficiently.
Instructions
Write content to a Python file in the working directory or system-wide if allowed.
Args:
file_path: Path to the file to write (relative to working directory or absolute if system access is enabled)
content: Content to write to the file
overwrite: Whether to overwrite the file if it exists (default: False)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | Yes | ||
file_path | Yes | ||
overwrite | No |
Input Schema (JSON Schema)
{
"properties": {
"content": {
"title": "Content",
"type": "string"
},
"file_path": {
"title": "File Path",
"type": "string"
},
"overwrite": {
"default": false,
"title": "Overwrite",
"type": "boolean"
}
},
"required": [
"file_path",
"content"
],
"title": "write_python_fileArguments",
"type": "object"
}