{"uid":"cap_btsITnoV8lPl-3BRYA_MY","slug":"agenttools-url-encoder-decoder-adf0bc7e","name":"AgentTools URL Encoder/Decoder","description":"Percent-encode text for safe inclusion in URLs and query strings, or decode percent-encoded text back. Uses the standard encodeURIComponent rules. Use this when an agent needs to percent-encoding for query strings and URLs.","url":"https://agenttools-hub.vercel.app/api/v1/dev/url-encoder?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"op":{"enum":["encode","decode"],"type":"string","description":"Direction"},"text":{"type":"string","description":"Text"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_Gl3QW1veXeHeEg5jd27SK","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":"Percent-encodes text for safe inclusion in URLs and query strings, or decodes percent-encoded text back, using encodeURIComponent rules.","exampleAgentPrompt":"Can you percent-encode this text so I can safely use it in a URL query string: 'hello world & more=yes'?","exampleUseCases":[{"title":"Safe query parameter construction","prompt":"I need to append a user's search query 'coffee shops near me & more' to a URL as a query param — can you URL-encode it first so the ampersand and spaces don't break the link?"},{"title":"Decoding webhook payload data","prompt":"I received this URL-encoded string from a webhook: 'hello%20world%20%26%20goodbye' — can you decode it back to plain text for me?"},{"title":"Encoding API request values","prompt":"I'm building a redirect URL and the destination path contains colons, slashes, and question marks — percent-encode this string for me: 'https://example.com/path?q=test&lang=en'"}],"resultDescription":"Returns the transformed string: either the percent-encoded version of the input (with spaces as %20, special characters escaped per encodeURIComponent rules) when encoding, or the decoded plain-text string when decoding.","failureModes":["Missing required 'text' query parameter returns an error","Invalid 'op' value other than 'encode' or 'decode' may cause unexpected behavior","Malformed percent-encoded input when decoding (e.g. a lone % sign) may return an error or partial result","Network timeout on the Vercel serverless host under cold-start conditions"],"whenToPreferThis":"Use this endpoint when an agent needs to safely prepare text for inclusion in URLs or query strings, or when it needs to interpret percent-encoded data received from web sources. Prefer this over custom logic when the agent must handle special characters, spaces, Unicode, or emoji in URL contexts reliably.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:42:52.643Z","isFirstParty":false,"canonicalSlug":"agenttools-url-encoder-decoder-adf0bc7e"}