confluence_render_body
Read a Confluence body file from disk and convert it to markdown or raw text. Optionally write the output to a file to avoid passing content through the agent's context.
Instructions
Render a page body that was offloaded to disk by an earlier read. Reads the file at bodyPath (returned by confluence_get_page / _blog_post / _comment when the body exceeds the inline limit) and converts the raw Confluence body (ADF JSON or storage XHTML) to markdown. No additional Confluence API call is made. Default response: { representation, sourceLength, bodyMarkdown } for format="markdown", or { representation, sourceLength, bodyRaw } for format="raw". If outputPath is provided, the rendered output is written to that file instead and the response omits the body, carrying { representation, sourceLength, outputPath, bytesWritten }. Use outputPath when restoring a doc to disk so the content doesn't pass through the agent's context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format. `markdown` runs the body through the ADF→markdown or storage→markdown converter. `raw` returns the persisted source string under `bodyRaw`. | markdown |
| bodyPath | Yes | Absolute path to a body file written by the trim layer (the `bodyPath` field on a previous tool response). | |
| outputPath | No | Optional absolute path to write the rendered output to. When set, the rendered content is written there and the response omits `bodyMarkdown`/`bodyRaw`, returning `outputPath` and `bytesWritten` instead. Parent directories are created if missing. Existing files are overwritten. Avoids inlining the body into the agent's context. |