detect_python_version
Detect the Python version in your environment and check 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 |
|---|---|---|---|
| source | Yes | How the version was detected: '.python-version file', 'python3 in PATH', or 'server runtime' | |
| is_default | Yes | Whether this detected version is being used as the default for get_docs | |
| detected_version | Yes | Python major.minor detected from the user's environment (e.g. '3.13') | |
| matched_index_version | No | The detected version if it matches an indexed doc set, otherwise null |