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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mime_type": "<mime_type>",
"label": "<label>"
},
"name": "add_doc_safelist"
}
}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 | |||