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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to the virtual environment directory. | .venv |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||