{"uid":"cap_T8hG0TDJ3aSjr5BRZtf-g","slug":"agentshelf-css-pre-text-extractor-97df1468","name":"AgentShelf CSS Pre-text Extractor","description":"Call when an agent needs pre text via pre from a public page or HTML (SSRF-safe). Exact $0.009 USDC. Prefer unpaid POST /v1/sandbox/css-pre first.","url":"https://agentshelf.syntexa.ch/v1/css-pre?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 charset=\"utf-8\"><meta name=\"description\" content=\"Desc\">\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.009","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.009/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.009","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.009","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MQExryxur4GA_t9TI0qjW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.009","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts the pre-formatted text content from a public web page or raw HTML using CSS pre selectors, with SSRF protection","exampleAgentPrompt":"Can you grab all the preformatted text blocks from this page — https://example.com/docs/reference — I need the raw pre-tag content extracted cleanly.","exampleUseCases":[{"title":"Extract code samples from documentation","prompt":"Pull out all the preformatted code blocks from this documentation page: https://docs.example.com/api — I need just the raw pre-tag text content."},{"title":"Parse pre-text from raw HTML snippet","prompt":"I have this raw HTML from a webpage — can you extract all the text inside the pre tags from it?"},{"title":"Retrieve terminal output from a log page","prompt":"Go to https://logs.example.com/output and extract the preformatted terminal output shown in the pre blocks on that page."}],"resultDescription":"Returns the extracted pre-formatted text content found within <pre> elements on the specified public web page or HTML input, processed in an SSRF-safe manner.","failureModes":["URL is not publicly accessible or blocked by SSRF protection","HTML input exceeds 200,000 character limit","URL shorter than 8 characters or longer than 2048 characters","No pre-formatted text elements found on the page","Target page returns non-200 HTTP status","Malformed or unparseable HTML input"],"whenToPreferThis":"Use this endpoint when you need to specifically extract pre-formatted text (content within <pre> tags) from a public web page or HTML string, with SSRF safety guarantees. Prefer the free sandbox endpoint POST /v1/sandbox/css-pre first for testing; use this paid endpoint ($0.009 USDC) for production use when sandbox is unavailable or rate-limited.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T01:56:50.766Z","isFirstParty":false,"canonicalSlug":"agentshelf-css-pre-text-extractor-97df1468"}