lg_validate
Validates brand-grade logo SVGs: filters security risks, checks offline self-containment, fallback fonts, stroke legibility, and viewBox aspect, returning normalized SVG with warnings to iterate.
Instructions
Validate a logo SVG (brand-grade, stricter than g_validate): security filter, self-contained check (rejects /external refs — logos must work offline), text fallback-font check, stroke legibility for small sizes, semantic group suggestions, viewBox/aspect sanity. Returns the normalized SVG with warnings to iterate on.
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": {
"svg": "<svg>"
},
"name": "lg_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | Yes | The logo SVG markup to validate (root element must be <svg>) | |
| format | No | Declared format — icon expects a square viewBox, wordmark/combination a 2:1 horizontal | icon |