Rulvar API reference / @rulvar/executor / parseToolResult
Function: parseToolResult()
ts
function parseToolResult(stdout, tool): unknown;Defined in: packages/executor/src/spi.ts:170
The tool-program result protocol: the child's stdout, trimmed, is the JSON result. Empty stdout is the null result; anything else must parse as JSON or the dispatch fails typed protocol. Diagnostics belong on stderr, which never enters the result.
Parameters
| Parameter | Type |
|---|---|
stdout | string |
tool | string |
Returns
unknown