Generate Licenses
cc_generate_licensesGenerate a third-party license file for npm or Python projects by reading dependency manifests and collecting license data into text, JSON, or CSV formats.
Instructions
Generates a third-party license file for an npm or Python project.
Args:
project_dir (string): Project directory
output_path (string): Output file
format (string): "text" | "json" | "csv"
Reads package.json (npm) or pip packages and collects license info.
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": {
"project_dir": "<project_dir>",
"output_path": "<output_path>"
},
"name": "cc_generate_licenses"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Format | text |
| output_path | Yes | Output file | |
| project_dir | Yes | Project directory |