Skip to content

Reference

sandbox.run_net: Run code (allowlisted network)

Markdown version

Run the step's own code in an isolated sandbox that may reach only the IPv4 ranges listed (owner-published only). Its answers are outside content.

  • Effect: reads
  • Through lg_propose: waits for a person's approval in the inbox
  • Credential scope: agents:write to start a run with lg_propose

Inputs

FieldTypeRequiredNotes
language"python" | "javascript"yes
sourcestringyesCode defining main(input) that returns JSON
inputanyno
timeout_sintegerno
envobjectno
networkarray of stringyesIPv4 ranges it may reach (everything else is blocked)

Example MCP call

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "lg_propose",
    "arguments": {
      "tool": "sandbox.run_net",
      "input": {
        "language": "python",
        "source": "…",
        "network": [
          "…"
        ]
      }
    }
  }
}

Replace the placeholders in input with real values (the fields above). The answer has the run, its output, and anything waiting for a person.

All agent tools: agent tools.

Send feedback

Tell us what's broken, confusing or missing on this page, or an idea. It goes to the team that builds the product.
Please don't include passwords or card numbers.
Only to reply about this. Never added to any mailing list.