# WritersLogic SVG Geometry Validator

> WritersLogic SVG Geometry Validator is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-22).

Validates up to 200 described SVG shapes against a viewport/viewBox for clipping, empty-render, and overlap issues without parsing markup or rendering

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/svg-geometry?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-svg-geometry-validator-d099ca6b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Hw0bQVlS22aTG2jK_0fJV

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability writerslogic-svg-geometry-validator-d099ca6b -d '<json body>'
```

Example prompt: Can you check these 5 SVG shapes — a rect at x=10 y=10 width=200 height=100, a circle at cx=300 cy=150 r=50, and three more — against a 400×300 viewport with a viewBox of '0 0 400 300' for clipping and overlap issues?

## When to prefer this

Use this endpoint when an AI agent is generating SVG diagrams, charts, icons, or illustrations and needs to verify geometric correctness before delivering output — specifically to catch shapes clipped by the viewport, shapes that would render as invisible, or unintended overlaps. Prefer this over manual review or full SVG rendering when you have shape geometry available as structured coordinates rather than markup, and you need a fast, cheap, deterministic check without spinning up a browser or renderer.

## Known failure modes

- Exceeding 200 shapes limit returns a validation error
- Invalid or missing shape type enum causes rejection
- Viewport width or height outside 0.001–10,000,000 range returns error
- Text bounding box checks always yield 'unknown' due to lack of font metrics
- Polygon/polyline overlap and clip results may yield 'unknown' rather than definitive pass/fail
- Path data and SVG markup cannot be parsed — only pre-computed bounding boxes accepted
- Transforms, CSS, and clip-paths are ignored, so results may differ from actual renderer output

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

A structured report listing each shape by ID with findings per requested check type (clip, empty, overlap). Each finding is classified as pass, fail, nested, or unknown. Unknown is returned when the result depends on estimated bounding boxes (e.g. text boxes, polygons, ellipses) rather than exact geometry. Also reports viewBox validity.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "width": {
   "type": "number",
   "maximum": 10000000,
   "minimum": 0.001,
   "description": "Viewport width in px (the svg width attribute)."
  },
  "checks": {
   "type": "array",
   "items": {
    "enum": [
     "clip",
     "empty",
     "overlap"
    ],
    "type": "string"
   },
   "maxItems": 3,
   "description": "Subset of clip, empty, overlap; default all. Overlap reports partial overlaps only; a shape fully inside another (a label on a card) is listed as nested and never fails."
  },
  "height": {
   "type": "number",
   "maximum": 10000000,
   "minimum": 0.001,
   "description": "Viewport height in px."
  },
  "shapes": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "type"
    ],
    "properties": {
     "r": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": -1000000000
     },
     "x": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": -1000000000
     },
     "y": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": -1000000000
     },
     "cx": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": -1000000000
     },
     "cy": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": -1000000000
     },
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "rx": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": -1000000000
     },
     "ry": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": -1000000000
     },
     "x1": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": -1000000000
     },
     "x2": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": -1000000000
     },
     "y1": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": -1000000000
     },
     "y2": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": -1000000000
     },
     "bbox": {
      "type": "array",
      "items": {
       "type": "number",
       "maximum": 1000000000,
       "minimum": -1000000000
      },
      "maxItems": 4,
      "minItems": 4
     },
     "text": {
      "type": "string",
      "maxLength": 500
     },
     "type": {
      "enum": [
       "rect",
       "circle",
       "ellipse",
       "line",
       "polygon",
       "polyline",
       "text",
       "bbox"
      ],
      "type": "string"
     },
     "width": {
      "type": "number
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-svg-geometry-validator-d099ca6b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
