queue
Execute multiple TeXFlow document operations in a single call, running them sequentially and writing the final result to disk once. Reduce round-trips by batching create, edit, layout, render, and reference actions.
Instructions
Execute multiple operations in a single call.
Each operation is a dict with 'tool' (document, layout, edit, render, reference) plus the arguments for that tool. Operations run sequentially; disk is written once at the end.
Example: queue(operations=[ {"tool": "document", "action": "create", "title": "My Doc"}, {"tool": "edit", "action": "insert", "block_type": "section", "title": "Intro", "level": 1}, {"tool": "edit", "action": "insert", "content": "Hello world.", "section": "Intro"}, {"tool": "layout", "columns": 2, "font": "palatino"} ])
Args: operations: List of operation dicts. continue_on_error: If False (default), stop on first error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operations | Yes | ||
| continue_on_error | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |