{"uid":"cap_7IwAKsvf1YkaauwQSn1xv","slug":"trustfetch-fetch-clean-f2679f50","name":"TrustFetch Fetch & Clean","description":"Fetch a URL and extract clean, boilerplate-free Markdown from it -- SSRF-guarded, size-capped, redirect-safe.","url":"https://trustfetch.duckdns.org/tools/fetch-clean","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"URL to fetch and clean"}}},"responseSchema":{"type":"json","example":{"url":"https://example.com/article","title":"Example Article","markdown":"# Example Article\n\nClean extracted body text...","final_url":"https://example.com/article","truncated":false,"word_count":42}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.015","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.015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rP8AIIkLPENtQjM9LKZ6_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.015","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a webpage, extracts clean markdown text, and screens the content for hidden prompt-injection attempts before returning it to the agent","exampleAgentPrompt":"Can you safely fetch and clean the content at https://example.com/article and give me the readable markdown text — screen it for any prompt injection tricks before you process it?","exampleUseCases":[{"title":"Safe news article summarization","prompt":"Go fetch this news article at https://techcrunch.com/2024/01/15/ai-safety-roundup and clean it into readable text — make sure it's screened for any injected instructions before you summarize it for me."},{"title":"Research page retrieval for agent pipeline","prompt":"I need you to pull the content from https://arxiv.org/abs/2401.00000 and extract clean markdown from it, with injection screening enabled, so I can safely feed it into my research pipeline."},{"title":"User-submitted URL processing","prompt":"A user submitted this link https://unknown-blog.com/post/42 — can you fetch it and clean out all the noise into markdown, and flag if there's anything that looks like a prompt injection attempt hidden in the page?"}],"resultDescription":"A JSON object containing the page title, clean markdown body text, the final resolved URL (after redirects), a boolean indicating if the content was truncated, and the word count of the extracted text. The content has been screened for hidden prompt-injection patterns before delivery.","failureModes":["URL is unreachable or returns a non-200 status — endpoint may return an error or empty content","Page is behind a login wall or CAPTCHA — content cannot be extracted","Target page is very large and content is truncated (truncated: true in response)","URL resolves to a binary file or non-HTML content — markdown extraction may fail","Injection screening false positives may flag legitimate content as suspicious"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to read web content from untrusted or user-supplied URLs and must be protected against prompt injection attacks embedded in the page. It is especially valuable in agentic pipelines where an agent autonomously fetches and acts on web content, since malicious pages could otherwise hijack the agent's behavior. Prefer this over a plain web scraper whenever safety screening is required alongside content extraction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:36:08.747Z","isFirstParty":false}