# sandbox_execution (`net.2xcel.aus.sandbox-execution`)

> Agent Utility Service (AUS) Sandbox Execution: Secure, isolated Node.js vm execution sandbox with configurable execution timeouts, strict context isolation, and CPU protection.

## Metadata & Execution
- **Namespace**: `net.2xcel.aus.sandbox-execution`
- **Canonical HTML Page**: https://aipages.tech/tool/net.2xcel.aus.sandbox-execution
- **JSON Specification**: https://aipages.tech/api/tools/net.2xcel.aus.sandbox-execution
- **Execution Endpoint**: `POST https://aipages.tech/tool/sandbox-execution`
- **Connection Protocol**: `http`
- **Pricing**: $0.25 USDC per call (Base Mainnet Chain ID 8453)
- **Health Status**: `unknown`
- **Capabilities**: sandbox-execution, code-eval, secure-runtime
- **Authentication**: x402 payment protocol (Header: x-payment-receipt; Token: USDC on Base Mainnet; Recipient: 0xE57cB8C73c4000EA04ba0eb607228CbAec7f8e9C)

## Input Parameters (JSON Schema Draft-07)
```json
{
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "maxLength": 5000,
      "description": "JavaScript source code to execute inside isolated VM context"
    },
    "context_data": {
      "type": "object",
      "description": "Input variables and parameters mapped to sandbox input"
    },
    "timeout_ms": {
      "type": "integer",
      "maximum": 5000,
      "default": 1000,
      "description": "Execution timeout ceiling in milliseconds (1000-3000ms enforced)"
    }
  },
  "required": [
    "code"
  ]
}
```

## Invocation Examples

### 1. Zero-Friction Sandbox Test (No Payment Required)
```bash
curl -X POST "https://aipages.tech/tool/net.2xcel.aus.sandbox-execution" \
  -H "Content-Type: application/json" \
  -H "x-playground-test: true" \
  -H "x-agent-id: markdown-agent" \
  -d '{}'
```

### 2. Production Invocation (x402 Base Mainnet Settlement)
```bash
curl -X POST "https://aipages.tech/tool/sandbox-execution" \
  -H "Content-Type: application/json" \
  -H "x-payment-receipt: <BASE_USDC_PAYMENT_RECEIPT>" \
  -d '{}'
```
