Pin package
code_pinAdd an npm package to the tree's import map at an exact version (the latest unless a version, range or tag is given), so files import it by name. Its subpaths resolve too.
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": {
"tree": "<tree>",
"package": "<package>",
"org": "<org>"
},
"name": "code_pin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | Yes | slug of the organization whose trees and sites to use. Required on every call, even when only one organization is listed; a path never names it. | |
| tree | Yes | The tree's name. | |
| message | No | A brief note on the change. | |
| package | Yes | The npm package name, e.g. preact or @preact/signals. | |
| version | No | A version, range or tag. |