fill-form-TH

fill-form-TH is a command for coding agents from WARROOM-CEO/CORE. It costs 0 tokens per session (636 once invoked), scanned A, original, MIT.

A command for completing fillable PDF forms in a live viewer with visual feedback. It helps identify fields by their printed labels even when the PDF uses unclear internal names.

In plain words
What is it for?
Use it to fill PDF applications and forms, inspect confusing fields, and edit or clear entered values.
Why use it?
It reduces the risk of entering information into the wrong box and makes corrections easy to review.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/warroom-ceo/core/fill-form-th
Clone the repo
git clone --depth 1 https://github.com/WARROOM-CEO/CORE

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-TH

README.md
[![agentmods](https://agentmods.dev/badge/commands/warroom-ceo/core/fill-form-th.svg)](https://agentmods.dev/commands/warroom-ceo/core/fill-form-th)
Your own site
<a href="https://agentmods.dev/commands/warroom-ceo/core/fill-form-th"><img src="https://agentmods.dev/badge/commands/warroom-ceo/core/fill-form-th.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 636 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00000 $0.00636
Opus 5 $0.00000 $0.00318
Sonnet 5 $0.00000 $0.00127
Haiku 4.5 $0.00000 $0.00064

Measured today against content hash 28391a72eebd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

fill-form-TH 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 today.

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.

plugins/pdf-viewer/commands/fill-form-TH.md · 64 lines

What it actually says

กรอกแบบฟอร์ม PDF (/pdf-viewer:fill-form)

กรอกช่องแบบฟอร์ม PDF แบบโต้ตอบพร้อม visual feedback สด


คำสั่งนี้ทำอะไร?

ช่วยคุณกรอกแบบฟอร์ม PDF ในตัวแสดงผลสด โดยให้ feedback ทางภาพแบบ real-time ทุกช่องที่กรอก ต่างจากเครื่องมือกรอกแบบฟอร์มแบบ programmatic ทั่วไปที่คุณเห็นเพียงข้อความยืนยันความสำเร็จ


วิธีใช้

/pdf-viewer:fill-form
/pdf-viewer:fill-form [path หรือ URL ของไฟล์ PDF]

ทำไมต้องใช้คำสั่งนี้แทนการกรอกแบบ programmatic?

  • ยืนยันด้วยภาพ — คุณเห็นค่าแต่ละตัวลงในช่องที่ถูกต้อง ไม่ใช่แค่ข้อความว่า "สำเร็จ"
  • ช่องที่ไม่มีชื่อ — PDF จำนวนมากมีช่องที่มีชื่อแบบ machine เช่น Text1, Field_7 โดย label จริงอย่าง "วันเกิด" หรือ "เลขบัตร" จะพิมพ์อยู่ข้างๆ ช่องบนหน้า Claude จะใช้ screenshot เพื่อดูว่าแต่ละช่องคืออะไร
  • แก้ไขได้ง่าย — คุณสามารถแก้ไขหรือล้างช่องใดก็ได้โดยตรงใน viewer

สองแนวทาง

1. User-driven (แบบฟอร์มที่มี label ชัดเจน)

เปิด PDF พร้อมตัวเลือก elicit_form_inputs: true — ระบบตรวจจับช่องแบบฟอร์มและถามคุณก่อนเปิด viewer จากนั้นแสดง PDF ที่กรอกแล้ว

2. AI-assisted (แบบฟอร์มซับซ้อน ช่องไม่มีชื่อ)

  1. เปิด PDF และตรวจสอบ formFields (ชื่อ, ประเภท, หน้า, bounding box)
  2. ถ้าชื่อช่องเข้าใจยาก (Text1, Field_7) Claude จะ screenshot แต่ละหน้าและจับคู่กับ label ที่มองเห็น
  3. ถามค่าที่ต้องการโดยอ้างอิง label ภาพ เช่น "ช่อง 'วันเกิด' ในหน้า 1"
  4. กรอกข้อมูลและแสดง screenshot ให้ยืนยัน

ตัวอย่าง

ช่วยกรอกแบบฟอร์ม W-9 นี้ให้หน่อย

Claude จะ: เปิด PDF → ตรวจสอบชื่อช่อง → screenshot เพื่อดู label จริง → ถามข้อมูลที่ยังขาด → กรอกทุกช่อง → แสดง screenshot เพื่อยืนยัน


หมายเหตุ

  • ช่องลายเซ็นมักเป็นแยกต่างหาก — กรอกข้อความก่อน แล้วใช้ /pdf-viewer:sign สำหรับลายเซ็น
  • ค่า Checkbox/radio ใช้ true/false หรือ string ของตัวเลือก
  • คุณสามารถลากและแก้ไขช่องโดยตรงใน viewer ได้เสมอ

ดู CONNECTORS-TH.md สำหรับข้อมูลการเชื่อมต่อเครื่องมือ

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. today First seen · 64 lines · 0 tokens per session scan A 28391a72eebd

Subscribe to this mod's changes

fill-form-TH is a command published in the GitHub repository WARROOM-CEO/CORE (30 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 636 tokens. 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-03.