word_create_sow_from_markdown
Creates a Statement of Work document by extracting structured data from Markdown and filling a corporate-styled .docx template.
Instructions
Create a SOW document from inline markdown or markdown_file by filling a template.
IMPORTANT: This tool requires a template to preserve document structure,
formatting, and corporate styling. It extracts data from Markdown and
uses generate_sow to fill the template.
Workflow:
1. Parse the Markdown to extract structured SOW data
2. Load the template document
3. Fill placeholders and tables with extracted data
4. Save the result
Example:
create_sow_from_markdown(
output_path="04. Artifacts/contoso-sow.docx",
template_path=".github/skills/statement-of-work/templates/Agile.docx",
markdown='''Contoso – Cloud Migration – Statement of Work
1. Engagement Overview
Customer: Contoso Ltd Provider: Microsoft Project: Cloud Migration Sprint 1
1.1 Business Objectives
Objective | Activities | Assumptions |
Migrate 15 apps | Assessment, planning | Apps are containerizable |
''' |
)
Args:
output_path: Path for the output .docx file
template_path: Path to the .docx template (REQUIRED)
markdown: Markdown content of the SOW (inline)
markdown_file: Optional path to a Markdown file. Use this for
very large inputs to avoid MCP argument-size limits.
Returns:
Status dictionary with file path and extraction summary
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_path | Yes | Path for the output .docx file | |
| markdown | No | Markdown content of the SOW (inline) | |
| template_path | Yes | Path to the .docx template (REQUIRED) | |
| markdown_file | No | Optional path to a Markdown file. Use this for very large inputs to avoid MCP argument-size limits. | |
| mode | No |