# AISkills402 Markdown Table Repair

> AISkills402 Markdown Table Repair is a paid API for AI agents from api.aiskills402.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-14).

Converts broken Markdown tables, tab-separated text, or HTML tables into valid GitHub Flavored Markdown (GFM) tables without altering cell content

## Facts

- Endpoint: POST https://api.aiskills402.com/v1/run/markdown-table-repair?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aiskills402-markdown-table-repair-8bda8db1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DE81kzl1M7R9HNRqwpNPp

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 aiskills402-markdown-table-repair-8bda8db1 -d '<json body>'
```

Example prompt: My markdown table isn't rendering — it's missing the alignment row and some cells have literal pipe characters in them. Can you fix this table and give me back valid GFM markdown: 'Name | Score | Note\nAnn | 007 | a|b\nBob | 1.10 | '?

## When to prefer this

Choose this endpoint when you need a deterministic, rules-based table repair that guarantees zero cell-content mutation — no language model is involved so numeric literals like '007' or '1.10' are preserved exactly as written. Prefer it over LLM-based formatting when cell fidelity is critical, when you're processing tab-separated exports or HTML tables programmatically, or when you need a cheap ($0.003 USDC), accountless, single-call fix for GFM rendering issues.

## Known failure modes

- Row is too long or ambiguous pipe placement makes repair impossible — returns a paid CANNOT REPAIR verdict in the refusal field
- Input exceeds 60,000 character limit — rejected before payment
- Input is not recognizable as any table format — may return CANNOT REPAIR
- Payment settlement fails via x402 — call does not complete
- Malformed JSON request body — HTTP 400 error

## How this service works

Markdown Table Repair API: turns a broken table, tab-separated text or an HTML table into a GFM table without changing any cell - adds the alignment row and pipes, escapes a pipe in a cell, pads short rows; 007 and 1.10 stay as written. $0.003 USDC per call, no account, no language model: a too-long row or an ambiguous pipe gets a paid CANNOT REPAIR verdict. POST JSON {input} up to 60 000 chars; free example at https://api.aiskills402.com/v1/run/markdown-table-repair/example

## Output

A JSON object containing: the repaired GFM Markdown table string (markdown field), the number of rows and columns detected, the engine version, a SHA-256 hash of the input, and a payment receipt with settlement transaction. If the table is too ambiguous or a row is too long to repair cleanly, the result includes a 'CANNOT REPAIR' refusal verdict instead of a table.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "maxLength": 60000,
   "minLength": 1,
   "description": "A table that was meant to render as Markdown and does not (no alignment row, missing pipes, a literal pipe in a cell), or tab-separated or HTML table data."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "skill": "markdown-table-repair",
  "engine": "1.0.0",
  "replay": false,
  "result": {
   "rows": 3,
   "columns": 3,
   "markdown": "| Name | Score | Note |\n| --- | --- | --- |\n| Ann | 007 | `a\\|b` |\n| Bob | 1.10 |  |"
  },
  "receipt": {
   "tx": "0x<settlement transaction>",
   "settled": true
  },
  "refusal": null,
  "input_sha256": "<sha256 of the request>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aiskills402-markdown-table-repair-8bda8db1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.aiskills402.com](https://www.zero.xyz/host/api.aiskills402.com/llms.txt)
