Export to Excel
layerz_exportGenerate the model as an Excel (.xlsx) workbook and return a short-lived download URL — the same export the web app produces (Intro + per-section sheets + native charts and dashboards, with live Excel formulas). When the model has branches, the statements and single-value widgets reflect one branch: pass branch_id to pick it (defaults to the base/default branch); dashboards always keep every branch they break down by. The file is stored out-of-band in private Storage and the response carries a signed download_url the user can open directly; the binary never transits the agent context. The URL and the stored file expire after 24h, then a daily purge removes them. Re-call the tool to refresh an expired link. Returns { download_url, filename, size, file_id, expires_at, structure_hash, values_hash }. A read operation — available for read-only API keys too.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_id | No | Target model UUID. Required for user-scoped API keys; ignored (or validated against scope) for model-scoped keys. | |
| branch_id | No | Branch to export for the statements/single-value widgets. Defaults to the base branch. Dashboards keep every branch regardless. Discover ids via layerz_list_branches. |