{
  "title": "JSON Repair Preview",
  "human_url": "https://happytails.ai/en/developer-tools/json-repair-preview/",
  "agent_url": "https://happytails.ai/agents/en/developer-tools/json-repair-preview/",
  "language": "en",
  "markdown_url": "https://happytails.ai/en/developer-tools/json-repair-preview.md",
  "content": "JSON Repair Preview\nPreview bounded JSON syntax repairs with an explicit diff. Your data stays local and the repaired text is parsed before it is marked valid.\nHow can we improve this tool?\nReport a problem or share an idea.\nPlease leave out private information. Your message and the tool name go to our team via PostHog.\nHow to use JSON Repair Preview\nPaste the JSON-like text.\nRun the repair preview.\nReview the line diff and download the report.\nUseful next steps\nJSON Canonicalizer\nJSON validator\nWhat it repairs\nThe preview handles a BOM, common single-quoted strings, unquoted object keys and trailing commas. It does not execute code or invent missing data.",
  "content_format": "text/plain",
  "visibility": "public",
  "links": [
    {
      "name": "JSON Canonicalizer",
      "url": "https://happytails.ai/en/developer-tools/json-canonicalizer/"
    },
    {
      "name": "JSON validator",
      "url": "https://happytails.ai/en/developer-tools/json-validator/"
    }
  ],
  "tool": {
    "id": "json-repair-preview",
    "category": "developer-tools",
    "built": true,
    "requirements": "Input is limited to 200000 characters. Results are computed locally and exported as JSON.",
    "implementation": {
      "fields": [],
      "inputMaxLength": 200000,
      "inputErrorCode": "STRUCTURED_TEXT_TOO_LONG",
      "registrationFamily": "json-repair-preview",
      "note": "Propose bounded JSON syntax repairs locally and show an explicit diff.",
      "experience": {
        "automatic": false,
        "single": false,
        "inputMaxLength": 200000,
        "inputMode": "text",
        "label": "JSON",
        "placeholder": "{\"name\":\"Ada\",\"count\":2}",
        "help": "Use double-quoted property names and valid JSON values. Up to 200,000 characters. Review the settings before running.",
        "action": null
      },
      "mode": "explicit",
      "interactive": false
    },
    "execution": "Browser interface",
    "api": null,
    "browser_agent": {
      "supported": true,
      "name": "run_current_tool",
      "discovery": "WebMCP on the human page in a supporting browser",
      "verification": "See audit/API-AUDIT.md; availability is not verification"
    }
  },
  "markdown": "# JSON Repair Preview\n\n- Human page: https://happytails.ai/en/developer-tools/json-repair-preview/\n- Markdown: https://happytails.ai/en/developer-tools/json-repair-preview.md\n- Structured JSON: https://happytails.ai/agents/en/developer-tools/json-repair-preview/index.json\n- Visibility: public\n\n## Tool capabilities\n\n| Property | Value |\n| --- | --- |\n| Tool ID | `json-repair-preview` |\n| Category | developer-tools |\n| Implementation | Registered implementation. Registration alone is not a production-quality guarantee. |\n| Browser execution | Use the visible action or interactive controls. |\n| Browser processing | Browser; see tool notes for network behavior. |\n| HTTP API | Not callable through HTTP. |\n| Browser-agent interface | run_current_tool |\n\n### Implementation notes\n\nPropose bounded JSON syntax repairs locally and show an explicit diff.\n\n### Inputs and settings\n\nText input: JSON.\n\nExample or placeholder shown in the interface (not a validated fixture):\n\n```text\n{\"name\":\"Ada\",\"count\":2}\n```\n\nUse double-quoted property names and valid JSON values. Up to 200,000 characters. Review the settings before running.\n\nNo additional settings are declared for this tool.\n\n### Browser-agent workflow\n\n1. Open the human page in a browser that supports WebMCP.\n2. Discover the interface exposed by that page; use its actual schema.\n3. Select files on the page first when the tool requires files.\n4. Call `run_current_tool` with valid input and settings.\n5. Inspect the returned result or error and the displayed output. Retrieve files from the displayed download links.\n\nCalls do not automatically copy or download results. Browser permissions still apply. Interface availability alone is not proof of successful execution.\n\n### Planning specification\n\nInput is limited to 200000 characters. Results are computed locally and exported as JSON.\n\nThis describes intended requirements. Use the implementation notes, interface schema and observed output to determine current support.\n\n### Complete machine-readable capability record\n\n```json\n{\n  \"id\": \"json-repair-preview\",\n  \"category\": \"developer-tools\",\n  \"built\": true,\n  \"requirements\": \"Input is limited to 200000 characters. Results are computed locally and exported as JSON.\",\n  \"implementation\": {\n    \"fields\": [],\n    \"inputMaxLength\": 200000,\n    \"inputErrorCode\": \"STRUCTURED_TEXT_TOO_LONG\",\n    \"registrationFamily\": \"json-repair-preview\",\n    \"note\": \"Propose bounded JSON syntax repairs locally and show an explicit diff.\",\n    \"experience\": {\n      \"automatic\": false,\n      \"single\": false,\n      \"inputMaxLength\": 200000,\n      \"inputMode\": \"text\",\n      \"label\": \"JSON\",\n      \"placeholder\": \"{\\\"name\\\":\\\"Ada\\\",\\\"count\\\":2}\",\n      \"help\": \"Use double-quoted property names and valid JSON values. Up to 200,000 characters. Review the settings before running.\",\n      \"action\": null\n    },\n    \"mode\": \"explicit\",\n    \"interactive\": false\n  },\n  \"execution\": \"Browser interface\",\n  \"api\": null,\n  \"browser_agent\": {\n    \"supported\": true,\n    \"name\": \"run_current_tool\",\n    \"discovery\": \"WebMCP on the human page in a supporting browser\",\n    \"verification\": \"See audit/API-AUDIT.md; availability is not verification\"\n  }\n}\n```\n\n## Page guide\n\nPreview bounded JSON syntax repairs with an explicit diff. Your data stays local and the repaired text is parsed before it is marked valid.\n\nHow can we improve this tool?\n\nReport a problem or share an idea.\n\nPlease leave out private information. Your message and the tool name go to our team via PostHog.\n\n### How to use JSON Repair Preview\n\n1. Paste the JSON-like text.\n2. Run the repair preview.\n3. Review the line diff and download the report.\n\n## Useful next steps\n\n- [JSON Canonicalizer](https://happytails.ai/en/developer-tools/json-canonicalizer/) ([Markdown](https://happytails.ai/en/developer-tools/json-canonicalizer.md))\n\n- [JSON validator](https://happytails.ai/en/developer-tools/json-validator/) ([Markdown](https://happytails.ai/en/developer-tools/json-validator.md))\n\n## What it repairs\n\nThe preview handles a BOM, common single-quoted strings, unquoted object keys and trailing commas. It does not execute code or invent missing data.\n"
}