Set DAT content (whole)
set_dat_contentReplace the entire contents of a Text or Table DAT with new text. Prevents empty or whitespace-only writes unless explicitly confirmed, avoiding accidental data loss.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dat_path": "<dat_path>",
"text": "<text>"
},
"name": "set_dat_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The full new contents of the DAT. Every existing character will be discarded; this string becomes the entire `.text` value. | |
| dat_path | Yes | Absolute path to the Text or Table DAT whose content will be fully replaced (e.g. '/project1/mytext1'). | |
| 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. |