{
  "format": "delx/intent-card/v1",
  "id": "arr-take-api",
  "intent": "Array Take for an agent workflow",
  "title": "Array Take API for agents",
  "description": "Take the first N elements. Call when you cap agent payloads before paid calls. Returns items prefix and 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": [
    "Array Take API",
    "Array Take for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-07",
  "canonical_url": "https://commerce.delx.ai/intents/arr-take-api",
  "machine_url": "https://commerce.delx.ai/intents/arr-take-api.json",
  "recommendation": {
    "tool_name": "util_arr_take",
    "service_name": "Delx Array Take",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/arr-take",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "items": {
          "description": "Input field: items.",
          "type": "array"
        },
        "n": {
          "description": "Input field: n.",
          "type": "integer"
        }
      },
      "required": [
        "items",
        "n"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "items": [
        1,
        2,
        3,
        4
      ],
      "n": 2
    },
    "example_output": {
      "schema": "delx/util-arr-take/v1",
      "items": [
        1,
        2
      ],
      "count": 2
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/arr-take -m POST -H 'x-delx-source: intent-card-arr-take-api' --max-amount 0.001 -b '{\"items\":[1,2,3,4],\"n\":2}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-arr-take-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/arr-take"
  }
}
