{"uid":"cap_dGTSKTOADFCI8_fZO0VRC","slug":"freshproof-agent-safe-read-5f18ce9e","name":"FreshProof Agent-Safe Read","description":"Retrieve a public webpage as sanitized Markdown with prompt injection detection, hidden-instruction, tool-coercion and URL-exfiltration risk assessment. Protect agent context and inspect untrusted webpage or MCP output before model memory or action planning.","url":"https://freshproof-api-mainnet.up.railway.app/v1/agent-safe-read?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","pattern":"^https?://","maxLength":4096},"options":{"type":"object","default":{"includeLinks":true,"maxCharacters":50000},"required":["includeLinks","maxCharacters"],"properties":{"includeLinks":{"type":"boolean","default":true},"maxCharacters":{"type":"integer","default":50000,"maximum":100000,"minimum":1000}},"additionalProperties":false}}},"responseSchema":{"type":"json","example":{"data":{"links":[],"source":{"finalUrl":"https://example.com/","statusCode":200,"contentType":"text/html","retrievedAt":"2026-08-04T08:00:00.000Z","requestedUrl":"https://example.com/","redirectChain":[]},"warnings":["NO_KNOWN_SIGNALS_DETECTED"],"truncated":false,"contentHash":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","trustBoundary":{"classification":"untrusted_external_content","contentMayBeUsedAsData":true,"instructionsShouldBeFollowed":false},"characterCount":47,"safetyAssessment":{"findings":[],"riskLevel":"low","riskScore":0,"categories":[],"findingCount":0,"rulesetVersion":"1.0.0","recommendedAction":"allow"},"sanitizedMarkdown":"# Example Domain\n\nIllustrative public content.","sanitizedContentHash":"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"},"success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_w1CGl8KB8G01IP0PiclYb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a public webpage as sanitized Markdown and assesses it for prompt injection, hidden instructions, tool-coercion, and URL-exfiltration risks before agent consumption","exampleAgentPrompt":"Before you process anything from https://some-untrusted-site.com, use FreshProof's agent-safe read to fetch it as sanitized Markdown and check it for prompt injection, hidden instructions, or URL-exfiltration attempts — include links and limit to 50000 characters.","exampleUseCases":[{"title":"Guarding agent against malicious MCP output","prompt":"Before my agent acts on the content returned from that third-party MCP tool at https://external-mcp-provider.com/tool-output, run it through an agent-safe read to check for hidden instructions or tool-coercion attempts — include all links and cap it at 50000 characters."},{"title":"Vetting untrusted user-submitted URL","prompt":"A user just submitted https://user-submitted-blog.com/article for my agent to summarize — can you fetch it safely with prompt injection and URL-exfiltration scanning before my agent reads it? Include links and use a 30000 character limit."},{"title":"Pre-processing competitor page for research agent","prompt":"My research agent needs to read https://competitor-company.com/pricing but I don't trust the page — fetch it as sanitized Markdown with hidden-instruction detection enabled, include links, and limit to 100000 characters so the agent context stays clean."}],"resultDescription":"Returns the webpage content as sanitized Markdown along with a structured risk assessment covering prompt injection likelihood, detected hidden instructions, tool-coercion indicators, and URL-exfiltration signals — enabling the agent to decide whether to proceed with the content or discard it.","failureModes":["URL not reachable or returns non-200 status — endpoint returns error with HTTP status code","URL pattern does not match ^https?:// — rejected with validation error","maxCharacters out of allowed range (1000–100000) — schema validation failure","Page contains no extractable text content — empty Markdown returned","Target page requires authentication or blocks automated access — fetch fails with access error","Payment not received or insufficient — x402 payment required error"],"whenToPreferThis":"Choose this endpoint when your agent needs to fetch external web content from untrusted or unknown sources before incorporating it into context, memory, or action planning. It is specifically designed to protect AI agents from adversarial web content including prompt injection, hidden instructions, and coercion attacks — unlike generic web scrapers that return raw content without security analysis. Prefer this over plain web retrieval endpoints whenever the source is user-submitted, third-party, or otherwise unvetted.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:31:03.123Z","isFirstParty":false,"canonicalSlug":"freshproof-agent-safe-read-5f18ce9e"}