Render .odb report
odb_render_reportResolve and render an .odb database's embedded report to DOCX, ODT, or PDF. The report's data-bound SQL query runs, formulas are evaluated, and bands are laid out before output.
Instructions
Resolves one of an .odb database's own reports -- its data-bound command run through the bounded SQL engine, its rpt: formulas evaluated, its bands laid out -- and renders the result to docx, odt, or pdf.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source": "<source>",
"targetFormat": "<targetFormat>"
},
"name": "odb_render_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fonts | No | Extra font faces to make available, for a family the rendered report's own text otherwise falls back on. Only consulted when targetFormat is 'pdf' -- docx and odt output is genuine editable text with no font-embedding step of its own, so fonts is ignored for those two targets. | |
| output | No | Where to write the rendered report. Omit entirely (or omit outputPath within it) to receive the bytes inline instead. | |
| report | No | The name of the report to render. Required only when the .odb declares more than one report -- omitting it when exactly one is declared renders that one automatically. | |
| source | Yes | .odb database to render a report from. 'path' points at the .odb file on disk -- its extension is never used to infer a document format, since documents.js deliberately excludes 'odb' from DocumentFormat (an embedded database front end has no single natural target format -- tables, saved queries, and reports are three unrelated output shapes -- see that package's own README). 'bytesBase64' carries the .odb bytes inline; its 'format' field is required by the shared hybrid input shape but unused by this tool. | |
| targetFormat | Yes | The format to render the report into. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||