word_cleanup_sow
Remove placeholder text, instructional content, and highlighted markers from a SOW document to produce a clean, presentation-ready version. Tracks all removals for auditability.
Instructions
Clean a SOW document by removing all placeholder and instructional content.
Removes:
Highlighted text (turquoise, yellow - template guidance markers)
Colored text (blue, red, purple - instructions)
Bracket placeholders that weren't filled: <...>, [Template Guidance: ...]
Instruction paragraphs containing guidance keywords
This is the final step after generate_sow to ensure the document is presentation-ready with no visible template artifacts. All removals are tracked for auditability.
Example: cleanup_sow( file_path="04. Artifacts/contoso-sow.docx", output_path="04. Artifacts/contoso-sow-final.docx" )
Args: file_path: Path to the SOW document to clean output_path: Path for cleaned output (defaults to overwriting input) author: Author name for tracked changes (default: "Solution Architect Agent")
Returns: Cleanup statistics
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the SOW document to clean | |
| output_path | No | Path for cleaned output (defaults to overwriting input) | |
| author | No | Author name for tracked changes (default: "Solution Architect Agent") |