fossa_bulk_assign_package_label
Assign one package label to many packages in a single API call. Targets exact locators, with optional apply-to-all-versions behavior.
Instructions
Assign one package label to many packages in a single call.
WRITES TO FOSSA. Requires FOSSA_ALLOW_WRITES=true.
Additive, and every target is named: this endpoint has no "all packages
matching a filter" mode, so the label reaches exactly the locators listed.
Each locator must include its version, as in npm+lodash$4.17.21. With
apply_to_all_versions=true the version part is ignored and the label is
assigned to every version of each named package instead.
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": {
"label_id": "<label_id>",
"package_locators": "<package_locators>",
"scope": "<scope>"
},
"name": "fossa_bulk_assign_package_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | ||
| label_id | Yes | ||
| scope_id | No | ||
| package_locators | Yes | ||
| apply_to_all_versions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||