ts_execute
Run JavaScript code in a Node sandbox to call allowed code-intelligence tools and return one value, combining symbol lookup, dependency checks, and edits in a single round-trip.
Instructions
Run a JS script in a Node sandbox with a typed facade. The script body executes as async () => { <body> }; use await tools.<name>(args) to call any allowed tool (find_symbol, get_function_source, get_dependents, search_codebase, replace_symbol_source, etc.). Return the final value. Collapses find->read->deps chains into one round-trip.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| js | No | Alias de `script`. JS function body. Use `await tools.foo(args)` then `return value`. | |
| body | No | Alias de `script`. JS function body. Use `await tools.foo(args)` then `return value`. | |
| code | No | Alias de `script`. JS function body. Use `await tools.foo(args)` then `return value`. | |
| script | No | JS function body. Use `await tools.foo(args)` then `return value`. | |
| timeout_ms | No | Max script wall-clock in ms (default 30000). |