office_template
Copy or analyze Microsoft Office document templates. Use 'copy' to duplicate a template file or 'analyze' to inspect its formatting structure.
Instructions
Copy templates or analyze template structure.
Replaces: excel_copy_template, word_copy_template, pptx_copy_template, word_analyze_template_formatting
Examples: # Copy Excel template office_template( source_path="templates/budget.xlsx", destination_path="output/q1-budget.xlsx" )
# Copy Word template
office_template(
source_path="templates/sow.docx",
destination_path="output/acme-sow.docx"
)
# Analyze Word template formatting
office_template(
source_path="templates/sow.docx",
destination_path="", # Not used for analyze
operation="analyze"
)Args: source_path: Path to the template file destination_path: Path for the copy (ignored for analyze) operation: "copy" to copy template, "analyze" to inspect formatting
Returns: Dictionary with operation results
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_path | Yes | Path to the template file | |
| destination_path | Yes | Path for the copy (ignored for analyze) | |
| operation | No | "copy" to copy template, "analyze" to inspect formatting |