apps_run

apps_run

Publish a snippet of JavaScript and get back a URL that runs it in a browser. It returns a link rather than output — the code runs in a sandbox when somebody opens it, not here

Free. This one only touches this instance's own storage, so there is nothing to charge for.

Runs on Apps — Small self-contained web tools, built and run in place.

Arguments

NameTypeWhat it is
code*stringJavaScript to run in the page. It runs as a module, in a sandbox, with no access to the caller's account

Calling it

Three doors onto the same method. MCP is what an agent speaks, REST is what a program speaks, and the answer is identical.

{"id":1,"jsonrpc":"2.0","method":"tools/call","params":{"arguments":{"code":"code"},"name":"apps_run"}}

Try it in the playground.