prolog_write_file
Write a complete Prolog file to disk and hot-reload it. Replaces the entire file; use for multi-clause rule files. Rolls back on syntax error.
Instructions
Write a .pl file to disk and hot-reload it. WARNING: replaces the entire file — not an append. Use for authoring multi-clause rule files (core.pl, scratch/). For individual facts use prolog_assert instead. On syntax error the file is rolled back and the server keeps running.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative path inside kbDir, e.g. 'core.pl' or 'scratch/foo.pl' | |
| content | Yes | Complete Prolog source — the full file content, not just the new clause |