{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "schemaVersion": "1.0",
  "name": "Office OOXML Template Merge & Markdown Extractor API",
  "humanReadableId": "apikeg/office-template",
  "agentVersion": "1.0.0",
  "description": "Brand-safe .docx/.pptx template merging (fixing Word split XML runs & table loops) and 85%+ token-saving .docx/.pptx/.xlsx Markdown extraction. Typing {{customer_name}} in Word or PowerPoint shatters placeholders across multiple <w:r>/<a:r> runs with <w:proofErr/> tags, breaking naive regex scripts and corrupting PKZIP CRC32 headers. This API heals split runs, clones styled table rows, and extracts clean Markdown in milliseconds.",
  "provider": {
    "name": "API Keg",
    "url": "https://apikeg.com"
  },
  "capabilities": {
    "mcpVersion": "2025-06-18",
    "x402Version": 2,
    "streaming": false,
    "supportedMessageParts": [
      "json",
      "text"
    ]
  },
  "supportedInterfaces": [
    {
      "url": "https://office-template.apikeg.com/mcp",
      "protocolBinding": "MCP-STREAMABLE-HTTP",
      "protocolVersion": "2025-06-18"
    },
    {
      "url": "https://office-template.apikeg.com/openapi.json",
      "protocolBinding": "OPENAPI-REST",
      "protocolVersion": "3.1.0"
    },
    {
      "url": "https://office-template.apikeg.com/.well-known/api-catalog",
      "protocolBinding": "RFC9727-LINKSET",
      "protocolVersion": "1.0"
    }
  ],
  "defaultInputModes": [
    "application/json"
  ],
  "defaultOutputModes": [
    "application/json",
    "text/markdown",
    "text/html"
  ],
  "skills": [
    {
      "id": "merge_office_template",
      "name": "Merge .docx or .pptx Office Template",
      "description": "Coalesces split {{variable}} runs across Word (<w:r>) and PowerPoint (<a:r>) paragraphs while preserving opening-run typography, expands {{#loop}}...{{/loop}} table rows, replaces variables across body/headers/footers/slides, and returns a valid PKZIP Base64 document plus any unmatchedPlaceholders. Why call instead of DIY: Eliminates broken {{tags}} caused by Word/PowerPoint spellcheck run-splitting, <a:br/> vs <w:br/> schema errors, and corrupt PKZIP Central Directory CRCs. Pricing: $0.004 USD per Office template merge (.docx or .pptx) (x402 instant micropayment). Pass ?dry_run=true on REST to validate schema free.",
      "tags": [
        "document-automation",
        "office-ooxml",
        "context-compression",
        "business-ops"
      ],
      "pricing": {
        "scheme": "exact",
        "priceUsd": "0.004",
        "unitDescription": "per Office template merge (.docx or .pptx)"
      },
      "documentationUrl": "https://office-template.apikeg.com/tools/merge-office-template"
    },
    {
      "id": "extract_office_markdown",
      "name": "Extract Token-Minimal Markdown from .docx, .pptx, or .xlsx",
      "description": "Auto-detects .docx, .pptx, or .xlsx from OOXML structure and converts headings, lists, Word/PowerPoint tables, numerically ordered slides, speaker notes, and sparse Excel worksheets into compact GitHub-Flavored Markdown with token-savings telemetry. Why call instead of DIY: Saves 80-95% of context window tokens vs raw OOXML dumps and handles Excel sharedStrings.xml + sparse cell coordinates (A1, D5) without external libraries. Pricing: $0.002 USD per Office document extraction (.docx, .pptx, or .xlsx) (x402 instant micropayment). Pass ?dry_run=true on REST to validate schema free.",
      "tags": [
        "document-automation",
        "office-ooxml",
        "context-compression",
        "business-ops"
      ],
      "pricing": {
        "scheme": "exact",
        "priceUsd": "0.002",
        "unitDescription": "per Office document extraction (.docx, .pptx, or .xlsx)"
      },
      "documentationUrl": "https://office-template.apikeg.com/tools/extract-office-markdown"
    }
  ]
}