Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

How do agent handle pre-filled or user-modified form values?

Aperta
#157 0 commenti 2 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
html
Ambito
api

Direzione di ricerca

Start by reading the WebMCP specification sections that define form tools and their input schemas; this issue does not name specific files or tests. Compare the two proposed approaches for exposing current form values and determine whether the specification should define a mechanism. Done means the specification question has a resolved direction and the corresponding behavior is clearly specified.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

declarative

Agents currently lack a reliable mechanism to invoke a tool based on a WebMCP form that contains values either manually filled by the user or pre-populated by the website. The agent is unaware of the form's current state, meaning it cannot confidently fulfill a user instruction like, "Submit this form. Trust me, I've already filled those fields". The agent is forced to rely solely on the schema defined by the form tool itself.

If an input field is marked as required, the agent cannot submit the form because it does not know the current value, effectively blocking the submission even if the form is valid in the browser.

<form toolname="submit_form" tooldescription="Submit form">
    <input type="text" name="name" value="John Doe" required>
    <button>Submit</button>
</form>
- User: Submit this form
- Agent: I can do that. What is the name of the form you would like to submit?

If the required attribute is omitted (or not by the way), the agent may "hallucinate" and generate a random value for the field rather than using the pre-filled value, potentially leading to the submission of incorrect data.

- User: Submit this form
- Agent: Call "submit_form" with {"name":"default_form"}

Ideally, the agent should have a method to submit the form using its current, visible values, despite some fields being required. We should clarify if the WebMCP specification should have a mechanism for this. We could either:

  1. Allow the agent to "read" the form values directly from the DOM.
  2. Mandate that the WebMCP specification requires exposing additional tools for each declared form tool, where these additional tools return the current form field values.
Lingua principale
Bikeshed
Stelle
4.7k
Fork
328
Merge medio
2g 15h
PR unite (30g)
16

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di webmachinelearning/webmcp

Tutte le issue di webmachinelearning/webmcp

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.