Run Kubernetes Analysis Code
run_codeExecutes bounded TypeScript with top-level await to inspect and debug Kubernetes resources, leveraging discovered capabilities and returning values from scripts.
Instructions
Execute bounded TypeScript with top-level await against progressively discovered Kubernetes capabilities. Use tools.list(), tools.search(), tools.help(), and typed namespaces; inspect tools.disabled() for policy denials. Return a value from the script. Full documentation and types are available through the code-mode prompt and file:///sys/global.d.ts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | TypeScript code to execute via the sandboxed runtime. Top-level await is supported. | |
| input | No | Optional input payload available to the script. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| result | No | ||
| stderr | No | ||
| stdout | No | ||
| isError | No | ||
| success | Yes |