Room types
One row per room or unit type on a hotel or rental page, in the page's own words, and one question answered from its photos.
3 tools run server-side in one request: one payment, one response, and a partial-success envelope if a step fails. Paid in USDC over x402 or MPP; this pack has no proof-of-work tier.
When to use this pack
Finding which rooms have a dishwasher, a washer or free parking. What the page does not state reads "not listed".
Tools in this pack
Each is also callable on its own.
| Tool | Route |
|---|---|
| Page images (galleries included) | POST /api/page-images |
| HTML meta (from string) | POST /api/html-meta |
| Image understanding (ask about a photo) | POST /api/image-describe |
Bought one at a time, these 3 tools cost $0.021 together; the pack is that sum less a 10% bundle discount, rounded up to the $0.001 settlement floor, which is $0.064.
Workflow
- Read the page's text and every photo, galleries included, with page-images.
- Write one row per room type, each naming its source page.
- List the room types the page's own structured data publishes, with html-meta.
- Ask up to 6 of the photos your question with image-describe (model-backed).
Arguments
| Name | Required | Description | Example |
|---|---|---|---|
url | yes | Page with the room or unit types, or one type's own page | https://agent402.tools/fixtures/sample-rooms.html |
question | no | Optional: one question to ask of the page's photos (up to 6); name the place, as in "Is there a dishwasher in this kitchen?" | Is there a refrigerator? |
What one call returns
A JSON object with pack, rows, structuredRooms, untrustedContent, args, steps, summary, aiGenerated; steps holds each tool's own result or error. Full example on the API page.
Call it directly
Any x402 client pays the 402 and gets the whole workflow back. With the agent402-client SDK (npm i agent402-client):
import { Agent402 } from "agent402-client";
// payFetch: an x402-wrapped fetch your wallet signs (@x402/fetch).
// Tools on the free tier need no options: new Agent402() pays them by proof-of-work.
// or pay by card: new Agent402({ creditsKey }) with a key from /credits
const client = new Agent402({ fetch: payFetch });
const result = await client.call("skill-room-types", {"url":"https://agent402.tools/fixtures/sample-rooms.html","question":"Is there a refrigerator?"});Run it in Claude
claude mcp add agent402 -s user -- npx -y agent402-mcp@0.21.0
Then paste this prompt:
List the room types on https://agent402.tools/fixtures/sample-rooms.html with Agent402's room-types skill pack, and ask its photos: Is there a refrigerator? Show a table with each type's sleeps, beds, kitchen and parking, keep "not listed" where the page says nothing, and name the source page.