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.
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 | |||