set_local_version
Set the Python version for the current directory by writing it to .python-version, ensuring project-specific interpreter selection.
Instructions
Set the local directory Python version (.python-version).
Args:
version: The version string to set locally (e.g., '3.12.2').
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"version": "<version>"
},
"name": "set_local_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |