add_package
Add a Python package to pyproject.toml and update the virtual environment, optionally as a development dependency.
Instructions
Add package to pyproject.toml and update the virtual environment. Returns True if successful.
Args: package_name: Name of the package to install. dev: If True, add the package to the development dependency group.
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": {
"package_name": "<package_name>",
"dev": "<dev>",
"current_working_dir": "<current_working_dir>"
},
"name": "add_package"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package_name | Yes | ||
| dev | Yes | ||
| current_working_dir | Yes |