宣言型 WebMCP がないフォーム

エージェントはフォームの動作を推測できますが、宣言型の WebMCP メタデータを提供することで、インタラクションの信頼性が高まります。

宣言型の WebMCP がないフォームの監査の仕組み

Lighthouse は、<form>toolname の両方がない tooldescription 要素を特定します。現時点では、この監査は情報提供のみを目的としており、警告は表示されません。

修正方法

必要な WebMCP 属性を含めるように HTML フォームを更新します。

<form toolname="newsletter_signup" tooldescription="Subscribes the user to the weekly newsletter">
  <input name="email" type="email" toolparamdescription="The user's email address">
  <button type="submit">Sign Up</button>
</form>