# Badge maker

Make a shields-style status badge as SVG from a label, a message and a colour, in five styles.

- Endpoint: `POST https://setget.net/v1/tools/badge-svg` with JSON `{"input": {...}}`
- MCP: `run_tool` with `slug` = `badge-svg`
- Page: https://setget.net/tools/badge-svg

## Inputs

- `label` (optional, string): Left-hand text. Leave empty for a badge with only a message.
- `message` (required, string): Right-hand text.
- `color` (optional, string, default `"blue"`): Message background: a name such as brightgreen, red or blue, or hex such as #4c1.
- `label_color` (optional, string, default `"#555"`): Label background: a name or hex.
- `style` (optional, string, one of `flat`, `flat-square`, `plastic`, `for-the-badge`, `social`, default `"flat"`): Badge shape.
- `logo` (optional, string, one of `alert`, `apple`, `aws`, `check`, `cloudflare`, `code`, `discord`, `docker`, `eye`, `flame`, `git`, `github`, `gitlab`, `go`, `heart`, `javascript`, `kubernetes`, `linux`, `mongodb`, `nodejs`, `npm`, `postgresql`, `python`, `redis`, `rust`, `shield`, `star`, `terminal`, `typescript`, `windows`, `zap`): An icon at the left, such as github, python or docker.
- `link` (optional, string, default `"none"`): Where the badge links to inside the SVG: an http or https address, or "none".

## Example 1: A green build badge

```json
{"input":{"label":"build","message":"passing","color":"brightgreen"}}
```

## Example 2: Large uppercase style with a logo

```json
{"input":{"label":"version","message":"2.4.1","style":"for-the-badge","logo":"github"}}
```

**Can the badge show live data?** Yes: store the value in a SetGet key and use https://setget.net/badge/<key>. This tool makes a fixed badge.

**How do I get a PNG?** Use the badge-png tool, which draws the same badge as a PNG.
