Give your agents the context
Install npm first. This command installs its capability description and registers your local executable. It doesn't install or run the tool.
clip registry add npm --purpose "Inspect JavaScript dependencies and package metadata"
clip syncCoverage: Installed dependency listing and registry metadata. This is a partial community description, not a claim of full CLI Spec conformance. Missing mutation markers mean unknown.
Agent validation
This schema hasn't been run against its tool by an agent yet.
what's described
Capabilities
Mutation status unknown
npm ls
Inspect installed dependency versions. Missing or invalid dependencies can produce a nonzero exit status.
npm ls --depth=0 --jsonMutation status unknown
npm view
Read package metadata from the configured npm registry.
npm view typescript@5.9.3 engines --jsonInspect the source
Review the schema's arguments and output fields before use. Community descriptions provide context, not authorization.
Full capability document
{
"name": "npm",
"version": "11.x",
"description": "Inspect installed dependencies and registry metadata. Mutation status is unknown because npm's configured cache and logs can be written. Installation, scripts, and publishing are excluded.",
"command_layout": "flat",
"commands": [
{
"name": "ls",
"description": "Inspect installed dependency versions. Missing or invalid dependencies can produce a nonzero exit status.",
"documentation": "https://docs.npmjs.com/cli/v11/commands/npm-ls/",
"args": [
{
"name": "package-spec",
"type": "string",
"description": "Optional package filter."
},
{
"name": "--json",
"type": "boolean"
},
{
"name": "--all",
"type": "boolean"
},
{
"name": "--depth",
"type": "integer",
"description": "Maximum dependency depth."
},
{
"name": "--workspace",
"type": "string",
"description": "Workspace name or path; repeatable."
}
],
"examples": [
"npm ls --depth=0 --json"
],
"output_fields": [
{
"name": "stdout",
"type": "string",
"description": "Dependency tree as text, or a JSON object with --json."
}
]
},
{
"name": "view",
"description": "Read package metadata from the configured npm registry.",
"documentation": "https://docs.npmjs.com/cli/v11/commands/npm-view/",
"args": [
{
"name": "package-spec",
"type": "string",
"required": true,
"description": "Package name with an optional version or tag."
},
{
"name": "field",
"type": "string",
"description": "Optional metadata field, such as engines."
},
{
"name": "--json",
"type": "boolean"
}
],
"examples": [
"npm view typescript@5.9.3 engines --json"
],
"output_fields": [
{
"name": "stdout",
"type": "string",
"description": "Selected metadata; --json emits JSON whose shape depends on the fields and versions requested."
}
]
}
],
"documentation": "https://docs.npmjs.com/cli/v11/"
}