FileModificationTask
+ +IllustrateDocumentTask
- Safe, patch-based file editing with built-in syntax validation and rollback capabilities. + Intelligently analyzes document content and generates contextually appropriate images to enhance understanding and visual appeal.
- Side-Effect: Destructive
- Auto-Fix Supported
+ Side-Effect: Destructive (File Edit)
+ Model: GPT-4 Preferred
+ Category: Writing
-
Input Configuration
+ ⚙️ IllustrateDocumentTaskExecutionConfigData
{
- "target_file": "src/main/App.kt",
- "instructions": "Add a logging statement to the main loop",
- "context_lines": 5
+ "files": ["docs/architecture.md"],
+ "maxImages": 3,
+ "imageFormat": "png",
+ "autoInsert": true,
+ "composerDirective": "Blueprint style diagrams"
}
→
-
Session UI Output
-
-
✔ File Updated Successfully
-
- 12 while(running) {
- 13 + logger.info("Heartbeat")
- 14 processNext()
+
- 13 + logger.info("Heartbeat")
- 14 processNext()
+
👁️ SessionTask UI
+
+ Overview
+ Analysis
+ Generation
+ Integration
+
+
+
+
+ Generating: system_overview
+
+ [Generated Blueprint Image]
+
+
+ ✔ Saved as
+ system_overview.png
+
+
Generating: data_flow
+Processing image generation...
-
-
- Configuration Parameters
+Execution Configuration
| Field | Type | Description | |||
|---|---|---|---|---|---|
target_file * |
- String | -Relative path to the file. Must exist in workspace. | -|||
instructions |
- String | -Natural language description of the edit desired. | +files * |
+ List<String> | +The document file to illustrate. Must be exactly one .md or .html file. |
+
maxImages |
+ Int | +Maximum number of images to generate (1-20). Default: 5. |
+ |||
imageFormat |
+ String | +Format for generated assets: png, jpg, or jpeg. Default: png. |
+ |||
autoInsert |
+ Boolean | +Whether to automatically apply diff patches to insert image references. Default: true. |
+ |||
composerDirective |
+ String? | +Instructions for the image generator (e.g., "Use a minimalist flat design style"). | +|||
integratorDirective |
+ String? | +Instructions for where and how to insert images (e.g., "Place images only after H2 headers"). |