Save layout as template
save_templatePersist the reviewed field layout: a future open_pdf of this exact file returns these fields with confidence 1.0 and no ML pass.
Field names (set with update_fields name=..., e.g. 'age_score',
'total_abcd2') are stored in the template, so later sessions map values
by meaning instead of by coordinates. False positives present at save
time are stored too, so remove them first with `remove_fields` or
`prune_fields`. For ML-detected layouts, every page with fields must be
reviewed via `render_preview` before saving.
When to use:
- Call `save_template` after filling (only when the user confirms) to persist
in-workspace field edits (`add_field`, `update_field`, `remove_field`) across
future sessions for the same blank PDF.
- Use `list_templates` to view existing saved templates on the account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable display name for the saved template (e.g. `'IRS Form W-9'`, `'Vendor Onboarding Form'`). | |
| workspace_id | Yes | Active workspace ID returned by `open_pdf` (`summary.workspace_id`) whose reviewed field layout should be saved. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||