{"uid":"cap_osCtJKtouBSd1JDOd8CU7","slug":"blockrun-sandbox-command-executor-8beec9fb","name":"Blockrun Sandbox Command Executor","description":"Execute a command inside a running sandbox. Returns stdout, stderr, and exit code.","url":"https://sol.blockrun.ai/api/v1/modal/sandbox/exec?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BaJJ7TE7nN8Pxs94jOYhd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes a shell command inside a running sandbox environment and returns stdout, stderr, and exit code","exampleAgentPrompt":"Run the command `python3 script.py --input data.csv` inside my running sandbox and show me the full output, any errors, and the exit code.","exampleUseCases":[{"title":"Automated test runner in sandbox","prompt":"Execute `pytest tests/ -v` inside my running sandbox environment and give me the full stdout output along with the exit code so I can see which tests passed or failed."},{"title":"Data processing script execution","prompt":"Run `python3 process.py --mode batch` in my active sandbox and return everything printed to stdout and stderr, plus the exit code — I need to know if it completed successfully."},{"title":"Build compilation check","prompt":"Execute `make build` inside my sandbox and show me the compiler output and any errors from stderr, along with whether the command succeeded (exit code 0) or not."}],"resultDescription":"Returns the complete stdout (standard output), stderr (standard error), and integer exit code produced by the executed command inside the specified running sandbox.","failureModes":["Sandbox not found or already terminated — returns error indicating invalid sandbox ID","Command not found in sandbox environment — exit code non-zero with stderr message","Sandbox timeout or resource exhaustion during execution","Invalid or malformed command string — may return parse error","Network or infrastructure failure resulting in failed request","Permission denied for certain system commands inside the sandbox"],"whenToPreferThis":"Use this endpoint when you have a live, running sandbox (e.g. created via Modal) and need to execute arbitrary shell commands within it, capturing all output programmatically. Prefer this over spinning up a new environment when the sandbox is already warm and stateful. Ideal for iterative code execution, automated testing pipelines, or any workflow requiring sequential command execution inside an isolated environment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-24T12:42:41.930Z","isFirstParty":false,"canonicalSlug":"blockrun-sandbox-command-executor-8beec9fb"}