{"uid":"cap_h69jjc4IzNn-ygDhAqptf","slug":"semver-range-extractor-caret-tilde-48f4f27d","name":"Semver Range Extractor (Caret & Tilde)","description":"Call when an agent needs caret or tilde semver ranges extracted from text, capped at 20 matches. An empty match list is billed. No network. Exact $0.003 USDC. Prefer unpaid POST /v1/sandbox/regex-semver-range first.","url":"https://agentshelf.syntexa.ch/v1/regex-semver-range?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","examples":["^1.2.3"],"maxLength":100000,"minLength":1,"description":"Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7Kmj3QRSBKNS7JMtp3OBV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts caret (^) and tilde (~) semantic versioning range expressions from arbitrary text, returning up to 20 matches.","exampleAgentPrompt":"Can you extract all the caret and tilde semver ranges from this package.json text? Here it is: '\"dependencies\": {\"lodash\": \"^4.17.21\", \"express\": \"~4.18.0\", \"react\": \"^18.2.0\"}'","exampleUseCases":[{"title":"Audit npm dependency version ranges","prompt":"I have a big package.json file pasted here — can you pull out every caret and tilde semver range from it so I can review which dependencies allow automatic minor or patch updates?"},{"title":"Extract version constraints from release notes","prompt":"Here's our changelog from the last three months. Can you find all the caret and tilde semver version ranges mentioned in it? I want to see if we've been documenting our peer dependency requirements consistently."},{"title":"Scan README for version specifiers","prompt":"I'm auditing this open-source library's README for all ^x.y.z and ~x.y.z version constraints — can you extract them all from this text block for me?"}],"resultDescription":"A list of up to 20 matched caret (^) and tilde (~) semver range strings found within the input text, along with metadata such as match count. If no ranges are found, an empty list is returned — but the call is still billed at $0.003 USDC.","failureModes":["Empty match list returned (still billed) when text contains no caret or tilde semver ranges","Input text exceeds 100,000 character limit causing rejection","Malformed or missing 'text' field in request body","Partial matches missed if version strings are malformed or non-standard","Cap of 20 matches means additional ranges beyond the first 20 are silently dropped"],"whenToPreferThis":"Choose this endpoint when you need to reliably extract caret (^) and tilde (~) semver range specifiers from unstructured or semi-structured text without standing up regex infrastructure yourself. It is best suited for lightweight, on-demand parsing of dependency files, changelogs, or documentation. Prefer the free sandbox endpoint (POST /v1/sandbox/regex-semver-range) for testing or non-production use to avoid the $0.003 USDC charge per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T03:06:09.785Z","isFirstParty":false,"canonicalSlug":"semver-range-extractor-caret-tilde-48f4f27d"}