activate_venv
Register a virtual environment as active for the session so subsequent Python and pip tool calls automatically use its interpreter and pip.
Instructions
Register a virtual environment as active in the current session.
This does not "activate" the venv in a shell sense (which is a shell-level operation). Instead, it records the venv path in the session so that subsequent python_* and pip_* tool calls use the venv's interpreter and pip automatically.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "activate_venv"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to the virtual environment directory. | .venv |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||