fossa_get_snippet
Retrieve a single code snippet match from FOSSA, showing its upstream package, licenses, issue counts, and matched file paths. Optionally include the matched source lines and reference/detected text for detailed analysis.
Instructions
Show one matched snippet: the upstream package it came from, its licenses, its issue counts, and every file path it was matched in.
Read-only. Pass path to hydrate the match details for that file. Set
include_match_details=True (which needs path) to also fetch the matched
source lines themselves — the reference text and the detected text.
Match details are capped at FOSSA_REPORT_MAX_CHARS. When the cap bites,
match_details is returned as truncated JSON text rather than an object,
with truncated set.
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_locator": "<project_locator>",
"revision_locator": "<revision_locator>",
"snippet_id": "<snippet_id>"
},
"name": "fossa_get_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| snippet_id | Yes | ||
| project_locator | Yes | ||
| revision_locator | Yes | ||
| include_match_details | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||