{"uid":"cap_UBwZYLNF1rGtfE-xBFF1r","slug":"agentshelf-xpath-input-name-extractor-d7520625","name":"AgentShelf XPath Input Name Extractor","description":"Call when an agent needs name attributes of //input via //input/@name from a public page or HTML (SSRF-safe). Exact $0.007 USDC. Prefer unpaid POST /v1/sandbox/xpath-input-name first.","url":"https://agentshelf.syntexa.ch/v1/xpath-input-name?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"minLength":8,"description":"Public page to fetch. The selector or profile is fixed by the SKU. Provide url or html."},"html":{"type":"string","examples":["<!doctype html><html lang=\"en\"><head><title>Hello</title>\n<meta name=\"description\" content=\"Desc\"><meta property=\"og:title\" content=\"OG\">\n<link rel=\"canonical\" href=\"https://example.com/\"><link rel=\"icon\" href=\"/favicon.ico\">\n</head><body><h1>Hello</h1><a href=\"https://example.com/a\">A</a></body></html>"],"maxLength":200000,"minLength":1,"description":"HTML to extract from locally. Provide html or url. When both are set, html is used."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.007","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.007/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.007","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.007","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Lyzl2pB4F6zJXev3NrHFq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.007","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts the name attributes of HTML input elements (via //input/@name XPath) from a given public URL or raw HTML string, in an SSRF-safe manner.","exampleAgentPrompt":"Can you extract all the input field names from the form on this page: https://example.com/signup — I need to know what name attributes the input elements use?","exampleUseCases":[{"title":"Discover login form field names","prompt":"I need to know what input field names the login form at https://accounts.example.com/login uses — can you pull out all the name attributes from the input elements on that page?"},{"title":"Analyze form structure from raw HTML","prompt":"Here's some raw HTML I captured from a checkout page — can you extract all the name attributes from the input elements so I can see what fields the form collects? Here's the HTML: <form><input name='email'/><input name='card_number'/><input name='cvv'/></form>"},{"title":"Audit form fields for web automation","prompt":"I'm building a bot to fill out the survey at https://survey.example.org/q1 — what are the name attributes of all the input elements on that page so I know what fields to target?"}],"resultDescription":"Returns an array or list of name attribute values extracted from all //input elements found on the page or in the provided HTML, enabling the caller to identify form field names without manually parsing HTML.","failureModes":["URL is unreachable or returns a non-200 status, resulting in an error response","HTML input exceeds the 200,000 character limit, causing a validation error","No input elements found on the page — returns an empty list","SSRF-blocked URL (private IP ranges, localhost) results in a rejection","Malformed HTML that cannot be parsed may yield incomplete or empty results","URL string shorter than 8 characters or longer than 2048 characters fails validation"],"whenToPreferThis":"Use this endpoint when you need to programmatically discover the name attributes of HTML input elements from a public page or raw HTML snippet — especially for form analysis, web automation setup, or data extraction pipelines. Prefer this over general-purpose HTML parsers when you specifically need input[name] values and want SSRF-safe fetching built in.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:50:14.970Z","isFirstParty":false,"canonicalSlug":"agentshelf-xpath-input-name-extractor-d7520625"}