Set DAT content (whole)
set_dat_contentReplace the entire content of a Text or Table DAT with new text. Prevents silent data loss by blocking empty writes unless confirmed.
Instructions
Overwrite a Text or Table DAT's entire .text with new content. Unlike edit_dat_content (which makes a surgical find-and-replace), this replaces everything in one shot — use it to deploy a full script or template. Refuses to write empty/whitespace-only text unless confirm_wipe:true is passed, preventing silent data loss.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dat_path | Yes | Absolute path to the Text or Table DAT whose content will be fully replaced (e.g. '/project1/mytext1'). | |
| text | Yes | The full new contents of the DAT. Every existing character will be discarded; this string becomes the entire `.text` value. | |
| confirm_wipe | No | Set true to allow writing empty or whitespace-only text, which clears the DAT. When false (default), the tool refuses to write blank content to prevent silent data loss. |