pkg
Read, modify, or remove package.json fields programmatically by specifying a directory path and field name, so you can update scripts, keywords, or metadata without manual file editing.
Instructions
Manage package.json fields programmatically
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the package directory | |
| field | Yes | Field name (e.g. 'name', 'scripts.build', 'keywords') | |
| value | No | JSON value to set; strings are literal strings, objects/arrays are accepted directly | |
| action | Yes | Action to perform |