{"uid":"cap_86e1jFadDvMOKInc2_oT7","slug":"delx-path-ext-6dde7911","name":"Delx Path Ext","description":"Extract file extension from a path or URL path segment — first-party local utility for agent preflight and proven micro-utils expansion. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, no web search, no live RPC, and no mediagen. Results are advisory; the caller owns authorization, budgets, and production controls.","url":"https://api.delx.ai/api/v1/x402/path-ext","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"path":{"type":"string","description":"Input field: path."}}},"responseSchema":{"type":"json","example":{"schema":"delx/util-path-ext/v1","basename":"b.PNG","extension":"png","has_extension":true}},"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_--x5ifYUk_jASDFwuUXbT","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":"Extracts the file extension from a given file path or URL path segment, returning a deterministic JSON result.","exampleAgentPrompt":"What's the file extension in the path '/uploads/reports/summary.pdf'? Just extract the extension from that path string.","exampleUseCases":[{"title":"Validate upload file type","prompt":"I have an uploaded file at path '/tmp/user_uploads/photo.jpeg' — can you extract the file extension so I can check if it's an allowed image type?"},{"title":"Parse asset type from URL path","prompt":"Given the URL path '/static/assets/bundle.min.js', what file extension does that path have?"},{"title":"Route files by extension in pipeline","prompt":"I'm processing a batch of paths like '/data/exports/report.csv' — can you pull out the file extension from this path so I can decide how to handle it?"}],"resultDescription":"Returns a deterministic JSON object containing the extracted file extension (e.g. '.pdf', '.jpg', '.js') from the input path or URL path segment. If no extension is present, returns an empty or null extension field.","failureModes":["Empty or missing path input returns an error or empty extension","Path with no extension returns null or empty string for extension","Malformed JSON input causes a 400-level error","Paths with multiple dots (e.g. 'file.tar.gz') may return only the last extension segment"],"whenToPreferThis":"Use this endpoint when you need a lightweight, deterministic, stateless extraction of a file extension from a path string during agent preflight checks, file routing logic, or validation pipelines — especially when you want a guaranteed machine-readable JSON response with no side effects and sub-cent cost via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T13:05:41.642Z","isFirstParty":false}