Function: resolveToolReplay()
resolveToolReplay(
tool):ToolReplay
Defined in: packages/core/src/utils/tool-durability.ts:29
The tool's replay rule, from its declarations, first match wins:
- An explicit
replay. requiresApprovalorneedsApprovalset and notfalse:unsafe.- MCP
metadata.annotations.readOnlyHint === true:safe. - MCP
metadata.annotations.destructiveHint === true:unsafe. - MCP
metadata.annotations.idempotentHint === true:safe. - A Processable tool:
safe. Its child resumes from the journal. - Anything else:
unsafe.
Parameters
tool
unknown