asksteps: store a PDF as a form template in the connected account
asksteps_import_pdfBrings a PDF into the connected asksteps account and stores it as a form template, so the answers people give can later be written back into that exact document. Requires "pdf:write". Unlike asksteps_analyze_pdf this one KEEPS the file, counts against the account's PDF-form quota, and also handles scanned documents through text recognition. It does NOT create the form: which fields become questions is the user's decision. You get a link that resumes the import in the asksteps studio with this template — no second upload. Pass exactly one of pdf_url or pdf_base64.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pdf_url | No | Public https URL of the PDF. Must be reachable from the internet. | |
| pdf_base64 | No | The PDF as base64, for a document that is not on the web. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Link that resumes the import in the asksteps studio, using the template you just stored — no second upload, no second quota use. Give it to the user; turning a document into a form is their decision, not yours. | |
| note | Yes | One sentence for the user, saying what happened and what they do next. | |
| source | No | Where the fields came from: "acroform" (the PDF already had form fields), "text" or "ocr" (they were recognised from a scan). Worth telling the user: a recognised scan usually needs more corrections than a real form. | |
| status | Yes | Outcome. One of: "imported", "not_connected", "quota_exceeded", "no_fillable_fields", "unreadable", "blocked", "too_large", "invalid_request", "rate_limited", "error". Authorisation can also refuse before the tool runs: "plan_required" (the account's plan does not include agent access), "not_enabled" (the account owner has not switched agent access on), "owner_required" (only the account owner may do this), "mandate_required" (the owner has not granted a mandate for this). The note then says what the user has to do. | |
| fileName | No | File name the template was stored under. | |
| pageCount | No | Number of pages in the document. | |
| fieldCount | No | Number of fillable fields found. | |
| templateId | No | The stored template id. Keep it — the link below resumes the import from it. |