add_doc_safelist
Add a MIME type to the document upload safelist to allow files of that type to be accepted. Requires admin role.
Instructions
Add a MIME type to the document upload safelist.
Once added, files whose Magika-detected type matches this MIME type will be accepted for upload. Requires admin role.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mime_type | Yes | MIME type to allow, e.g. "application/pdf". | |
| label | Yes | Magika content label, e.g. "pdf". Run `parts doc scan` against a sample file to find the correct label. | |
| description | No | Optional human-readable note about this entry. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||