{"uid":"cap_CIbtdYcE-k4BtZN9vGVNT","slug":"coco-mime-type-lookup-6f33e32e","name":"CoCo MIME Type Lookup","description":"Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.","url":"https://cocoeatsai.com/area4/agent/tools/mime?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"enum":["GET"]},"queryParams":{"type":"object","properties":{"value":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"const":"json"},"example":{"type":"object","required":["mime"],"properties":{"mime":{"type":["string","null"]}}}}}}},"responseSchema":{"type":"json","example":{"mime":"application/pdf","encoding":null,"extension":"pdf"},"exampleNote":"Computed offline with demonstration inputs; time/random values are illustrative."},"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_mRqIQ6xOFYLCFFBcEzINM","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":"Returns the MIME type, encoding, and file extension for a given value (e.g. filename or extension string)","exampleAgentPrompt":"What's the MIME type for a .pdf file? Look it up and give me the full content-type string including encoding if any.","exampleUseCases":[{"title":"Set correct Content-Type header","prompt":"I'm uploading a .png image to an API and need to know what Content-Type header value to use — can you look up the MIME type for PNG?"},{"title":"Validate file type before processing","prompt":"Before I process this file with extension .docx, can you look up its MIME type so I can confirm it's an Office document and not something unexpected?"},{"title":"Identify MIME type for MP4 video","prompt":"What's the MIME type and encoding for an .mp4 file? I need it to configure my media server's response headers correctly."}],"resultDescription":"A JSON object containing the resolved MIME type string (e.g. 'application/pdf'), the encoding (e.g. null or 'gzip'), and the canonical file extension (e.g. 'pdf'). The mime field may be null if the input is unrecognized.","failureModes":["Unknown or unrecognized extension/value returns mime: null","Missing required 'value' query parameter may return an error or null result","Ambiguous input (e.g. bare filename without extension) may return null","Payment failure (402) if x402 micropayment not provided"],"whenToPreferThis":"Use this endpoint when you need a quick, programmatic MIME type resolution for a file extension or filename in an agent workflow, especially when you want encoding and extension metadata alongside the content-type string. It is best suited for single lookups at low cost ($0.001 USDC) with a simple GET interface.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:44:29.578Z","isFirstParty":false,"canonicalSlug":"coco-mime-type-lookup-6f33e32e"}