export
Save generated PDF artifacts to real files on disk by specifying a destination path and optional filename template. Use at the end to persist results beyond temporary artifact IDs.
Instructions
Save one or more results to a real location on disk.
The only tool that writes to the user's filesystem, so call it once at the end, when they have said where the output should go. Never hand an artifact id back as if it were a finished file; artifacts expire.
Args:
refs: Artifact id, or list of artifact ids, to export.
dest: Where to write. For a single artifact this may be a full file
path. For several artifacts, or when name is given, this is a
directory and is created if missing.
name: Filename template used when writing into a directory.
Placeholders: {n} 1-based index (e.g. "page_{n:03d}{ext}"),
{ext} extension, {id} artifact id, {stem} id without extension.
Defaults to "{n:03d}{ext}".
overwrite: Replace existing files instead of failing. Defaults to
False so nothing is destroyed by accident.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dest | Yes | ||
| name | No | ||
| refs | Yes | ||
| overwrite | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |