{"uid":"cap_2V0EjZrlUaQXOt8xMysBM","slug":"agentshelf-syntexa-ch-xpath-form-method-extractor-9d9683c1","name":"agentshelf.syntexa.ch XPath Form Method Extractor","description":"Call when an agent needs method attributes of //form via //form/@method from a public page or HTML (SSRF-safe). Exact $0.01 USDC. Prefer unpaid POST /v1/sandbox/xpath-form-method first.","url":"https://agentshelf.syntexa.ch/v1/xpath-form-method?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.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_19rpEMwrRGIj8dBUnbYTW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts the HTTP method attribute from HTML form elements using XPath (//form/@method) from a given URL or raw HTML","exampleAgentPrompt":"Can you check what HTTP method the form on https://example.com/contact uses — is it GET or POST?","exampleUseCases":[{"title":"Checking form submission method on a contact page","prompt":"Look at the HTML form on https://mysite.com/signup and tell me what method attribute it has — GET or POST?"},{"title":"Auditing form methods from raw HTML snippet","prompt":"I have this raw HTML: '<form method=\"POST\" action=\"/submit\"><input name=\"q\"></form>' — can you extract the form method from it?"},{"title":"Automating form interaction workflow","prompt":"Before I automate submitting the search form on https://example.com/search, can you tell me what HTTP method that form uses so I know how to send the request?"}],"resultDescription":"Returns the value of the method attribute from the HTML form element found via XPath (//form/@method), such as 'GET' or 'POST'. If multiple forms exist, returns the method of the first matched form. If no method attribute is present, may return empty or default.","failureModes":["URL is unreachable or returns non-200 status — extraction fails","No form element found on the page — empty or null result returned","Form has no explicit method attribute — may return empty string or default GET","HTML input is malformed or exceeds 200,000 character limit — request rejected","SSRF-unsafe URL blocked by server-side protections — request rejected","Both url and html fields are missing — validation error"],"whenToPreferThis":"Use this endpoint when you need to quickly determine the HTTP method of an HTML form element from either a live URL or raw HTML. Prefer the free sandbox endpoint (/v1/sandbox/xpath-form-method) for development and testing to avoid the $0.01 cost. This endpoint is appropriate when you need a reliable, SSRF-safe extraction in production workflows where you want managed security around outbound URL fetching.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T00:53:51.479Z","isFirstParty":false,"canonicalSlug":"agentshelf-syntexa-ch-xpath-form-method-extractor-9d9683c1"}