vibehyper.media

Example page · handrail

← All projects

Example page · Ex. 01 Class I · ExtensionsCross-filed IV · Curiosities

handrail

Your hx-post buttons, published as WebMCP tools an agent can call.

  1. Any hx-post that carries an hx-tool name is registered as a tool. The button is the API.
  2. The schema comes from the element: its form fields, its hx-vals, its aria-description. This is what the agent reads instead of a screenshot.
  3. A tool call fires the element's own request. Same endpoint, same headers, HX-Source and all. The server can't tell, and doesn't need to.
  4. The swap lands for whoever is watching. Press a button yourself: you and the agent share one request path and one log.
Fig. 1. An issue tracker, triaged by an agent through handrail's tools. The agent and the server are played by the demo responder; the buttons are real hx-posts. Press one. awaiting first request
Kind
extension
Language
JavaScript
htmx
4.x
Status
experimental
Licence
MIT
Speaks
WebMCP

§1Description

§2Source

Maintainers
example-maintainer, example-2Made-up handles: an example has no people
Repository
NoneAn example, listed to show the page at size
Register
projects.jsonEx. 01, an example number: examples never take a register No.
Skin
skin-handrail.cssworn inside fig. 1 only
Frame
Signalthe house frame; a skin dresses only the demo window
Install labelEx. 01
Copy
handrail.js next to htmx
Load
<script src="/js/handrail.js"></script> after htmx, no defer
Name
hx-tool="close_issue" on any hx-post
Describe
aria-description becomes the tool's description
Needs
htmx 4.x · an agent that speaks WebMCP