detect_python_version
Detects the Python version in your environment and checks if it matches an indexed documentation set.
Instructions
Detect the Python version in the user's environment. Returns the detected version, how it was found, and whether it matches an indexed documentation set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detected_version | Yes | Python major.minor detected from the user's environment (e.g. '3.13') | |
| source | Yes | How the version was detected: '.python-version file', 'python3 in PATH', or 'server runtime' | |
| matched_index_version | No | The detected version if it matches an indexed doc set, otherwise null | |
| is_default | Yes | Whether this detected version is being used as the default for get_docs |