You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: package.json
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1593,7 +1593,7 @@
1593
1593
{
1594
1594
"name": "configure_python_environment",
1595
1595
"displayName": "Configure Python Environment",
1596
-
"modelDescription": "This tool configures a Python environment in the given workspace. ALWAYS Use this tool to set up the user's chosen environment and ALWAYS call this tool before using any other Python related tools or running any Python command in the terminal. IMPORTANT: This tool is only for Python environments (venv, virtualenv, conda, pipenv, poetry, pyenv, pixi, or any other Python environment manager). Do not use this tool for npm packages, system packages, Ruby gems, or any other non-Python dependencies.",
1596
+
"modelDescription": "This tool configures a Python environment in the given workspace. ALWAYS Use this tool to set up the user's chosen environment and ALWAYS call this tool before using any other Python related tools or running any Python command in the terminal. If you already know which Python interpreter to use (e.g. from a previous tool call or user message), pass it as 'pythonPath' to skip interactive prompts and configure the environment automatically. IMPORTANT: This tool is only for Python environments (venv, virtualenv, conda, pipenv, poetry, pyenv, pixi, or any other Python environment manager). Do not use this tool for npm packages, system packages, Ruby gems, or any other non-Python dependencies.",
"description": "The path to the Python file or workspace for which a Python Environment needs to be configured."
1612
+
},
1613
+
"pythonPath": {
1614
+
"type": "string",
1615
+
"description": "Optional absolute path to a Python interpreter to use. When provided, the environment is configured automatically without any interactive prompts. Use this to avoid blocking the session on user input."
1612
1616
}
1613
1617
},
1614
1618
"required": []
@@ -1642,7 +1646,7 @@
1642
1646
{
1643
1647
"name": "selectEnvironment",
1644
1648
"displayName": "Select a Python Environment",
1645
-
"modelDescription": "This tool will prompt the user to select an existing Python Environment",
1649
+
"modelDescription": "This tool will prompt the user to select an existing Python Environment. If pythonPath is provided, it sets that interpreter directly without showing any UI.",
1646
1650
"tags": [],
1647
1651
"canBeReferencedInPrompt": false,
1648
1652
"inputSchema": {
@@ -1651,6 +1655,10 @@
1651
1655
"resourcePath": {
1652
1656
"type": "string",
1653
1657
"description": "The path to the Python file or workspace for which a Python Environment needs to be configured."
1658
+
},
1659
+
"pythonPath": {
1660
+
"type": "string",
1661
+
"description": "Optional absolute path to a Python interpreter to use. When provided, the interpreter is set directly without showing any UI picker."
packageList?: string[];// Added only becausewe have ability to create a virtual env with list of packages same tool within the in Python Env extension.
48
+
packageList?: string[];// Added only because we have ability to create a virtual env with list of packages same tool within the in Python Env extension.
0 commit comments