execute_tool
Run tool code directly for testing before creation. Returns stdout, stderr, result, and typed error on failure.
Instructions
Run tool code directly, WITHOUT saving it — the way to test a tool you are authoring, before create_tool/update_tool. Returns stdout/stderr, the result, and a typed errorType (timeout/memory/import/runtime/validation) on failure. Pass toolId to run against an already-saved tool's context.
This does NOT satisfy the publish gate, however cleanly it runs. It executes the functions YOU supply, which need not be the tool's stored code, so a pass here proves nothing about what would actually ship. To clear the dry_run_required blocker on a SAVED tool, use dry_run_tool — that runs the tool's own stored implementation and is the only run that counts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toolId | No | An existing tool id to run in context of. | |
| classes | No | Optional classes (max 20). | |
| imports | No | The import block. Defaults to empty. | |
| timeout | No | Seconds. Default 30. | |
| functions | Yes | The functions to run (max 20). | |
| inputParams | No | Parameters passed into the entry-point function. |