Get the concrete remediation playbook for a flagged finding
get_remediation_playbookMaps a finding's rule value from analyze_install_script, check_maintainer_changes, or check_package_provenance to the matching human-authored incident-response playbook (the same content published at /docs/playbooks) and returns its concrete, ordered steps, severity tier, real-incident references, and prevention tips — not just a link. Pass the exact rule string(s) a prior finding already returned (batch up to 10 in one call to cover a whole findings array; duplicates resolving to the same playbook are deduplicated) or an id to look up a specific playbook by slug directly. Each matched rule also gets its own short situationNote explaining specifically what that rule caught — so a batch of several different rules landing on the same playbook does not read as identical, repeated boilerplate. An unrecognized rule or id is not an error — it comes back with matched:false and a note, since a low-severity or baseline-only finding (e.g. analyze_install_script's lifecycle-present) legitimately has no dedicated playbook.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | A playbook slug to look up directly, e.g. "postinstall-binary" — see /docs/playbooks | |
| rules | No | 1-10 exact `rule` values copied from findings already returned by analyze_install_script/check_maintainer_changes/check_package_provenance |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| matches | Yes | ||
| playbooks | Yes |