Graphorin API reference v0.12.1
Graphorin API reference / @graphorin/tools / code-mode / CodeExecuteToolOptions
Interface: CodeExecuteToolOptions
Defined in: packages/tools/src/code-mode/meta-tools.ts:155
Configuration for createCodeExecuteTool.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
allowedTools | readonly | readonly string[] | Names the script may call. Discovered (deferred) names may be added. | packages/tools/src/code-mode/meta-tools.ts:159 |
approvalGatedTools? | readonly | readonly string[] | Approval-gated tool names (TL-8) - listed in the catalogue with a call-directly marker (they cannot suspend for HITL mid-script). | packages/tools/src/code-mode/meta-tools.ts:177 |
executeTool | readonly | CodeExecuteBridge | Host bridge for each tools.<name>(args) call. | packages/tools/src/code-mode/meta-tools.ts:161 |
limits? | readonly | CodeExecuteLimits | Sandbox limits. | packages/tools/src/code-mode/meta-tools.ts:163 |
projection | readonly | CodeApiProjection | Projection over the eager tool set, embedded in the description. | packages/tools/src/code-mode/meta-tools.ts:157 |
run? | readonly | CodeModeRunner | The code-mode runtime executing the script (E3): any CodeModeRunner - a subprocess provider, a remote runner, a test fake. Default runBridgedSource (in-process worker_threads). The runner receives only the script source, the allowed tool names, the dispatch bridge and limits - credentials, RunState and policy stay on the harness side. | packages/tools/src/code-mode/meta-tools.ts:172 |