Get badge SVG and README Markdown
get_project_badge_svgRetrieve an SVG badge and Markdown embed snippet for a BadgeApp project and badge series from the OpenSSF Best Practices API, returning the SVG snapshot plus dynamic image and project page URLs.
Instructions
Retrieve an SVG badge and Markdown embed snippet for one selected BadgeApp project and one badge series, named by the family argument, from the OpenSSF Best Practices Badge API (https://www.bestpractices.dev). Returns the SVG text as a snapshot, its media type, dynamic image and project-page URLs, and source/fetch metadata. The dynamic URL lets README images reflect later badge changes. Does not render the SVG or write files; to save the badge as a file, write the returned svg text with your own file tools. Badge level, progress and update time are available through get_project_status; saved answers through get_project_answers.
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_id": "<project_id>",
"family": "<family>"
},
"name": "get_project_badge_svg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| family | Yes | Badge series whose SVG and README snippet to retrieve: "best_practices" is the metal series (passing, silver, gold); "baseline" is the Baseline series. | |
| project_id | Yes | BadgeApp project ID, as returned by find_project. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||