acroform-fill
Use this skill for fillable PDF form workflows backed by sciClaw's dedicated PDF form tools.
Core workflow
- •Run
pdf_form_inspectfirst. - •If
isSupportedAcroFormisfalse, stop and explain that sciClaw will not force-fill non-AcroForm, XFA-only, or scanned PDFs. - •Run
pdf_form_schemato get the field inventory before preparing values. - •If values are not already in a JSON file, create one in the workspace with
write_file. - •Run
pdf_form_fillto a new output path. - •Keep
flatten=falseby default. Only flatten when the user explicitly wants final non-editable output. - •Report
skippedFieldsandunusedInputKeysclearly. If either is non-empty, treat the output as review-needed. - •If you need to send the resulting PDF back to the user, use
messagewith the output file as an attachment.
Rules
- •Never overwrite the source PDF.
- •Never skip
pdf_form_inspect. - •Do not use
read_fileon raw PDFs. - •Prefer exact field names from
pdf_form_schema; do not invent field names. - •For choice fields, use the schema's
choicesexactly. - •If the user only wants to know whether a PDF is fillable, stop after
pdf_form_inspect. - •If the user gives narrative text instead of structured values, convert that text into a JSON values file before calling
pdf_form_fill. - •For sensitive or regulated workflows, prefer reviewable output before flattening.
Minimal examples
1. Check whether a PDF is a real AcroForm
Use when the user asks: "Is this PDF fillable?"
json
{"pdf_path":"forms/prior-auth.pdf"}
Tool:
- •
pdf_form_inspect
Good outcome:
- •
isSupportedAcroForm = true-> continue if needed - •
isSupportedAcroForm = false-> stop and explain why
2. Get the field schema before filling
Use when the user asks: "What fields are on this form?"
json
{"pdf_path":"forms/prior-auth.pdf"}
Tool:
- •
pdf_form_schema
Then summarize the important field names, types, and any choices the model must respect.
3. Fill from an existing values JSON file
First make sure the values file exists in the workspace, for example:
json
{
"PatientName": "Jane Doe",
"DOB": "1978-02-14",
"Urgent": true
}
Then call:
json
{
"pdf_path":"forms/prior-auth.pdf",
"values_path":"memory/prior-auth.values.json",
"output_path":"memory/prior-auth.filled.pdf",
"flatten":false
}
Tool:
- •
pdf_form_fill
4. Fill from narrative text
Use when the user gives a note, letter, or summary instead of a ready JSON file.
Workflow:
- •
pdf_form_inspect - •
pdf_form_schema - •
write_filea JSON values file in the workspace - •
pdf_form_fill - •Report any skipped or unused fields
When not to use this skill
- •OCR or scanned-document extraction
- •Free-form PDF text extraction
- •XFA-only forms that are not true AcroForms
- •Cases where the user wants arbitrary PDF editing instead of form filling