{"uid":"cap_NQjFXYN7ysjIZ5VqHUbhN","slug":"agent402-tools-mime-type-lookup-1277cdf5","name":"agent402.tools MIME Type Lookup","description":"Look up a MIME type by file extension (?ext=png) or extensions by MIME type (?type=image/png). Covers ~50 common types.","url":"https://agent402.tools/api/mime","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","properties":{"ext":{"type":"string","description":"File extension (with or without dot)"},"type":{"type":"string","description":"MIME type to reverse-lookup"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["ext","mime"],"properties":{"ext":{"type":"string"},"mime":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"ext":"webp","mime":"image/webp"}},"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"ext":"pdf"}}},"response":{"ext":"pdf","mime":"application/pdf"}},"exampleRequest":{"ext":"pdf"},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_5xXAZbjIYA4VjkcjsvSkH","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":"Look up a MIME type by file extension or find file extensions for a given MIME type, covering ~50 common types.","exampleAgentPrompt":"What's the MIME type for a .png file? Also, if I have the type image/jpeg, what file extensions go with it?","exampleUseCases":null,"resultDescription":"Returns the MIME type string for a given file extension (e.g. 'image/png' for 'png'), or a list of file extensions associated with a given MIME type (e.g. ['.jpg', '.jpeg'] for 'image/jpeg'). Covers approximately 50 common file types.","failureModes":["Unknown or unsupported extension/MIME type returns an empty result or 404","Neither ext nor type query param provided results in an error response","Malformed MIME type string may return no match","Extension not in the ~50 supported types returns no result"],"whenToPreferThis":"Use this endpoint when an agent needs to resolve a file extension to its canonical MIME/content-type string (e.g. to set HTTP Content-Type headers) or reverse-lookup which file extensions correspond to a given MIME type. Best suited for common file types; not appropriate for obscure or proprietary formats.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:52:29.447Z","isFirstParty":false}