{"uid":"cap_LW1xUbbK6bbkTiNgVtxZf","slug":"forest-agent-tools-base64-encode-decode-bade8d40","name":"Forest Agent Tools – Base64 Encode/Decode","description":"Machine-readable contract for active Forest paid capabilities. Unsigned paid calls return HTTP 402 with a PAYMENT-REQUIRED x402 challenge.","url":"https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/text/base64?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"enum":["encode","decode"],"type":"string","description":"Public mode value used to scope this lookup."},"value":{"type":"string","maxLength":136536,"description":"Public value value used to scope this lookup."},"variant":{"enum":["standard","url-safe"],"type":"string","description":"Public product options used to select an offer."}}},"responseSchema":{"type":"json","example":{"ok":true,"data":{"mode":"encode","scope":"caller_supplied_text_base64_only","result":"example","variant":"standard","byte_length":0,"input_encoding":"example","output_encoding":"example"},"meta":{"cache":"miss","provider":"node-buffer","checked_at":"2026-01-01T00:00:00.000Z","duration_ms":0},"version":"1","capability":"text.base64"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NGgsrg5946_cFf_gD6lBT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encode UTF-8 text to standard or URL-safe Base64, or decode canonical Base64 back to UTF-8 text, with strict size and encoding validation.","exampleAgentPrompt":"Can you Base64-encode this text using the standard variant: 'Hello, World! This is my payload.'?","exampleUseCases":[{"title":"Encode API token for HTTP header","prompt":"I need to Base64-encode this string using standard mode so I can put it in an Authorization header: 'myuser:mysecretpassword'"},{"title":"Decode Base64 config blob","prompt":"Can you decode this Base64 string back to plain text for me? It's in standard format: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9'"},{"title":"URL-safe Base64 for web token","prompt":"Encode this JSON string as URL-safe Base64 so I can safely embed it in a URL parameter: '{\"user_id\":42,\"role\":\"admin\"}'"}],"resultDescription":"Returns the transformed string — either the Base64-encoded representation of the input UTF-8 text, or the decoded UTF-8 text recovered from a valid Base64 input. The service performs the transform locally and returns a result or a clear error if the input is invalid, non-UTF-8, or exceeds the 100 KiB size limit.","failureModes":["Input exceeds 100 KiB limit — rejected with a size error","Decode mode receives an invalid Base64 string — rejected with encoding error","Decoded bytes are not valid UTF-8 — rejected with UTF-8 validation error","Missing or invalid mode field — request rejected","Missing value field — request rejected","Network or payment failure (HTTP 402 if payment not attached)"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic, server-side Base64 encode or decode with strict UTF-8 and size validation, and you want to avoid bundling a local library or running untrusted transform code. It handles both standard and URL-safe Base64 variants explicitly, making it suitable for preparing URL query parameters, HTTP headers, or data payloads in agent pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:38:42.280Z","isFirstParty":false,"canonicalSlug":"forest-agent-tools-base64-encode-decode-bade8d40"}