{
  "format": "delx/intent-card/v1",
  "id": "dedent-text-api",
  "intent": "Dedent Text for an agent workflow",
  "title": "Dedent Text API for agents",
  "description": "Remove common leading whitespace from lines. Call when you normalize agent-held code fences or YAML blocks. Returns dedented text and stripped space count for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.",
  "keywords": [
    "Dedent Text API",
    "Dedent Text for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-07",
  "canonical_url": "https://commerce.delx.ai/intents/dedent-text-api",
  "machine_url": "https://commerce.delx.ai/intents/dedent-text-api.json",
  "recommendation": {
    "tool_name": "util_dedent_text",
    "service_name": "Delx Dedent Text",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/dedent-text",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "text": {
          "description": "Input field: text.",
          "type": "string"
        }
      },
      "required": [
        "text"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "text": "    a\n    b\n  c"
    },
    "example_output": {
      "schema": "delx/util-dedent-text/v1",
      "text": "  a\n  b\nc",
      "stripped": 2
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/dedent-text -m POST -H 'x-delx-source: intent-card-dedent-text-api' --max-amount 0.001 -b '{\"text\":\"    a\\n    b\\n  c\"}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-dedent-text-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/dedent-text"
  }
}
