init
Create a new package.json file in a specified directory, optionally with a scope. Sets up the foundation for npm package configuration.
Instructions
Initialize a new package.json
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": {
"path": "<path>"
},
"name": "init"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the directory | |
| scope | No | Scope for the package (e.g. @myorg) |