publish
Publish a package to the npm registry with options for dist-tag, access level, dry-run, and one-time password for two-factor authentication.
Instructions
Publish a package to the npm registry
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": "publish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| otp | No | One-time password for 2FA | |
| tag | No | Dist-tag (default: latest) | |
| path | Yes | Absolute path to the package directory | |
| access | No | Access level for scoped packages | |
| dryRun | No | Run publish without actually publishing |