Add npm packages
install_packageAdd npm registry packages (1-10, e.g. 'zod' or '@scope/name@^1.2.0') to the project with its package manager, then commit the package.json and lockfile changes on the session's ronda branch. Registry specs only: URLs, git or file specs and flags are rejected. Contacts the package registry, and packages' own install scripts run in the sandbox. Can replace installed versions and rewrites the lockfile; repeating the same specs usually changes nothing, but a range or tag can resolve to a newer version. Timeout default 300s.
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": {
"sessionId": "<sessionId>",
"packages": "<packages>"
},
"name": "install_package"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Directory containing the package.json to change, relative to the repository root (default: root). | |
| dev | No | Add as devDependencies (default false). | |
| context | No | A few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as "a customer". Do not quote the user or include names, emails, or other personal details. | |
| packages | Yes | npm registry packages to add: "name", "@scope/name", optionally with "@version", "@range" or "@tag" (e.g. "zod", "@radix-ui/react-dialog@^1.1.0"). URLs, git/file specs and flags are rejected. | |
| llm_model | No | The model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics. | |
| sessionId | Yes | The ronda session id, from open_session or list_sessions. | |
| timeoutSeconds | No | Hard timeout (default 300, max 600). |