{"ok":true,"result":{"slug":"mime-type-lookup","name":"MIME Type Lookup","summary":"Find the MIME type and Content-Type header for a file extension or filename, the extensions for a MIME type, or search the table. Optionally detect a file's real type from its first bytes (magic numbers).","description":"Find the MIME type for any file extension or the extensions for a MIME type, with charset and compression notes. Detect a file's real type from its bytes.","method":"POST","endpoint":"/api/v1/tools/mime-type-lookup","plan":"free","mcpName":"mime_type_lookup","input":{"type":"object","additionalProperties":false,"properties":{"query":{"type":"string","description":"An extension (\"webp\", \".PNG\"), a filename (\"report.pdf\"), a MIME type (\"application/json\") or words to search. Empty is allowed when only fileBase64 is given.","default":"","maxLength":500},"fileBase64":{"type":"string","description":"Optional: the first bytes of a file (up to 4 KB), Base64-encoded, to detect its real type from magic numbers. When query is a filename, the result also says whether the extension matches the content.","maxLength":8192}}},"example":{"query":"photo.webp"},"randomOutput":false,"network":false,"docs":"https://pithlab.com/developers/tools/mime-type-lookup","page":"https://pithlab.com/tools/mime-type-lookup"}}