fill-form

fill-form is a command for Claude Code from anthropics/knowledge-work-plugins. It costs 10 tokens per session (805 once invoked), scanned A, original, Apache-2.0.

A command for filling in interactive PDF forms while showing each value in a live document viewer. PDF is a file format commonly used for forms and fixed-layout documents.

In plain words
What is it for?
Use it to inspect and complete fillable PDFs, handle unclear fields with screenshots, and let users correct entries in the viewer.
Why use it?
It lets users visually confirm that values went into the right fields, including fields whose machine names do not describe their printed labels.

Command for Claude Code ✓ vendor

Written for Claude Code: argument-hint in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is If you need to check which tools are connected, see [CONNECTORS.md](../CONNECTORS.md)..

Part of the pdf-viewer plugin — 1 skill, 4 commands shipped together

Good fit Use it to inspect and complete fillable PDFs, handle unclear fields with screenshots, and let users correct entries in the viewer.

Compare 6 commands from other repositories ↓
About the project

Knowledge Work Plugins is an open-source collection of Claude extensions organized around roles such as productivity, sales, and customer support. Each plugin combines role-specific guidance, connectors, commands, and sub-agents so knowledge workers can use Claude with their team’s tools and processes. The catalogue entries are examples of, or workflows from, this plugin collection.

anthropics/knowledge-work-plugins · 32,712 stars · on GitHub

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/anthropics/knowledge-work-plugins
agentmods
npx agentmods add commands/anthropics/knowledge-work-plugins/fill-form

Made for: Claude Code.

Or install pdf-viewer, the plugin that ships this one along with the rest of its 1 skill, 4 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fill-form

README.md
[![agentmods](https://agentmods.dev/badge/commands/anthropics/knowledge-work-plugins/fill-form/github.svg)](https://agentmods.dev/commands/anthropics/knowledge-work-plugins/fill-form)
Your own site
<a href="https://agentmods.dev/commands/anthropics/knowledge-work-plugins/fill-form"><img src="https://agentmods.dev/badge/commands/anthropics/knowledge-work-plugins/fill-form/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fill-form

Your own site · 80×15
<a href="https://agentmods.dev/commands/anthropics/knowledge-work-plugins/fill-form"><img src="https://agentmods.dev/badge/commands/anthropics/knowledge-work-plugins/fill-form.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 805 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00010 $0.00805
Opus 5.5 $0.00004 $0.00322
Sonnet 5.5 $0.00002 $0.00161
Haiku 4.5 $0.00001 $0.00081

Measured 1mo ago against content hash 787ca13d2032, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fill-form scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

pdf-viewer/commands/fill-form.md · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.

If you need to check which tools are connected, see CONNECTORS.md.

Fill Form

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.

Why use this instead of programmatic form filling

  • Visual confirmation — the user sees each value land in the right box, not just a success message
  • Unnamed/unlabeled fields — many real-world PDFs have fields with machine names like 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.
  • Easy correction — the user can edit or clear any field directly in the viewer, or ask you to fill_form again with new values

Two approaches

User-driven (simple, well-labeled forms)

Call 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.

AI-assisted (complex forms, unnamed fields, or when you have context)

  1. display_pdf (without elicit) — inspect returned formFields (name, type, page, bounding box)
  2. If field names are cryptic (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.
  3. For each field, either:
    • Infer the value from conversation context (name, date, email)
    • Ask the user, describing the field by its visual label ("the 'Date of Birth' box on page 1")
  4. interact → fill_form with fields: [{name, value}, ...]
  5. interact → get_screenshot of each filled page
  6. Show the user, ask them to confirm or edit

Example

User: Help me fill out this W-9

You: display_pdf → formFields: f1_1, f1_2, f1_3, c1_1, ... (cryptic names)

You: interact → get_screenshot page 1 → see f1_1 is next to "Name", f1_2 is "Business name", c1_1 is the "Individual" checkbox

You: "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_screenshot

You: "Here's the filled form [screenshot]. The signature line is still blank — want to add your signature with /pdf-viewer:sign?"

Read the full file on GitHub · 74 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 74 lines · 10 tokens per session scan A 787ca13d2032

Subscribe to this mod's changes

fill-form is a command published in the GitHub repository anthropics/knowledge-work-plugins (32,712 stars, last pushed yesterday), licensed Apache-2.0. It adds 10 tokens to every session and 805 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.