ls
List installed npm packages in a project by specifying the absolute path. Filter by depth, global, all, or production dependencies to view dependency trees.
Instructions
List installed packages in a project
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": "ls"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Show all packages, not just top-level | |
| path | Yes | Absolute path to the package directory | |
| depth | No | Dependency tree depth (default: 0) | |
| global | No | List global packages | |
| package | No | Specific package to look for | |
| production | No | Only show production dependencies |