run_python_file
Execute a Python file with specified arguments and environment settings. Processes file paths, custom environments, and command-line inputs to return script results efficiently for development workflows.
Instructions
Execute a Python file and return the result.
Args:
file_path: Path to the Python file to execute (relative to working directory or absolute if system access is enabled)
environment: Name of the Python environment to use (default if custom path provided, otherwise system)
arguments: List of command-line arguments to pass to the script
Input Schema
Name | Required | Description | Default |
---|---|---|---|
arguments | No | ||
environment | No | default | |
file_path | Yes |
Input Schema (JSON Schema)
{
"properties": {
"arguments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Arguments"
},
"environment": {
"default": "default",
"title": "Environment",
"type": "string"
},
"file_path": {
"title": "File Path",
"type": "string"
}
},
"required": [
"file_path"
],
"title": "run_python_fileArguments",
"type": "object"
}