Fill a form from documents or notes
fill_form_from_contextFill a PDF form using facts found in supporting documents. Emboss reads the answers out of context_text and/or context_urls (public https links to PDFs, Word, spreadsheets, images, or text) and fills the form. Give form_id for a form already in the library, or pdf_url/pdf_base64 for a new one. Give library= from find_form to start from a form Emboss already keeps. policy is safe (write high and medium confidence) or strict (high only). Returns a job_id; poll get_job about every 20 seconds. Billed as one context fill; the first 5 each month are free. Optional retention: ephemeral or account_default (default: the account's own setting); it applies only when this call creates the form (pdf_url, pdf_base64 or library), since an existing form keeps the setting it was created with. Ephemeral processing: source and output documents are deleted 60 to 70 minutes after the last activity on a form. Pass dry_run=true to rehearse this call without doing it: nothing is stored, charged or sent, and no AI is used. The answer says whether the real call would succeed or be refused, what it would cost, and what a rehearsal cannot check.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"policy": "safe",
"form_id": "11111111-2222-3333-4444-555555555555",
"context_text": "Grace Hopper, born 9 December 1906, 1 Navy Way, Arlington, VA 22202."
},
"name": "fill_form_from_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy | No | safe | |
| dry_run | No | ||
| form_id | No | ||
| library | No | ||
| pdf_url | No | ||
| retention | No | ||
| pdf_base64 | No | ||
| context_text | No | ||
| context_urls | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||