| Name | Type | Description |
|---|---|---|
filePath* | string |
Determine MIME type from a file path's extension.
Defaults to "text/plain" for unknown extensions. Only the known non-text formats above (images, audio, video, PDF/PPT) are treated as binary by isTextMimeType; everything else reads as text, including source files with uncommon extensions (.properties, .scss, .tf) and extension-less files (Dockerfile, mvnw). This avoids base64-encoding text into document blocks, which the model can't read and which the Anthropic provider rejects with a 400.
File path to inspect