validate_script
Validate Python script metadata and dependencies without execution. Checks PEP 723 syntax, dependency format, and requires-python compatibility.
Instructions
Validate a Python script's PEP 723 metadata and dependencies without executing it.
Checks metadata syntax, dependency format, and requires-python compatibility.
Args: script: Python source code to validate. May include inline dependency metadata (# /// script blocks, see https://peps.python.org/pep-0723/). dependencies: Extra dependency specifiers to validate, using standard pip-style format like "requests>=2.28" (see https://peps.python.org/pep-0508/).
Returns: Validation result with metadata details or error information.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| dependencies | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |