If you need to check which tools are connected, see CONNECTORS.md.
Help the user complete a fillable PDF form in the live viewer. Unlike programmatic form tools, this gives the user direct visual feedback on every field as it's filled, with easy undo/edit in the viewer.
Text1,
Field_7, or no name at all. The label ("Date of Birth",
"SSN") is printed next to the field on the rendered
page, not in the field metadata. Use get_screenshot to see
what each field actually is, then fill by name.fill_form again
with new valuesCall display_pdf with
elicit_form_inputs: true. The server detects form fields
and prompts the user to enter values before the viewer
opens. The filled PDF is then displayed.
display_pdf (without elicit) — inspect returned
formFields (name, type, page, bounding box)Text1,
Field_7), use interact →
get_screenshot of each page with fields. Look at the visual
labels next to each bounding box to understand what each field is.interact → fill_form with
fields: [{name, value}, ...]interact → get_screenshot of each filled
pageUser: Help me fill out this W-9
You:
display_pdf→ formFields:f1_1,f1_2,f1_3,c1_1, ... (cryptic names)You:
interact→get_screenshotpage 1 → seef1_1is next to "Name",f1_2is "Business name",c1_1is the "Individual" checkboxYou: "I can see Name, Business name, Address, TIN, and tax classification checkboxes. I'll fill Name and Date from what I know — what's your TIN and business address?"
After answers:
interact→fill_form+get_screenshotYou: "Here's the filled form [screenshot]. The signature line is still blank — want to add your signature with
/pdf-viewer:sign?"
/pdf-viewer:sign for the imagetrue/false or
the option string