ts_execute
Run a JavaScript script with access to codebase tools, enabling multi-step operations like symbol lookup and dependency analysis in a single execution.
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 |
|---|---|---|---|
| script | Yes | JS function body. Use `await tools.foo(args)` then `return value`. | |
| timeout_ms | No | Max script wall-clock in ms (default 30000). |