Detect No-op Action
detect_noopDetermine whether an action attempt left state unchanged or matches a previous attempt, recording the result to detect repeat loops.
Instructions
Detect whether a tool call was a no-op (state unchanged) or identical to a prior attempt in the session — a cheap repeat-loop signal. Records the action attempt state for repeat detection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actionId | Yes | Stable identifier for the action being checked (e.g. the file path or command being attempted) | |
| kind | No | Action kind: file edit/write or command execution | |
| filePath | No | Path of the file the action targets (file kind) | |
| beforeContent | No | File content before the action (file kind) | |
| afterContent | No | File content after the action (file kind) | |
| exitCode | No | Command exit code (command kind) | |
| stdout | No | Command stdout (command kind) | |
| stderr | No | Command stderr (command kind) | |
| sessionId | No | Optional session id used to scope repeat-attempt detection |