Execute a write
executeRun INSERT, UPDATE, or DELETE statements with a preview of affected rows and human approval required. Refuses UPDATE or DELETE without a WHERE clause.
Instructions
Runs a single INSERT, UPDATE or DELETE. The change is first executed in a rolled-back transaction to measure exactly how many rows it affects, then that number is shown to a human for approval. UPDATE/DELETE without a WHERE clause is always refused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | A single INSERT, UPDATE or DELETE statement | |
| params | No | Values for $1, $2 … placeholders | |
| reason | Yes | Why this change is needed — shown to the approver |