Create taxonomy item
create_taxonomy_itemCreate a tag, correspondent, document type, storage path, or custom field with the right kind-specific settings and optional matching rules.
Instructions
Create a tag, correspondent, document type, storage path or custom field.
The kind decides which settings apply; a setting of another kind is an error. A storage path needs path, a custom field needs data_type, and a select field needs select_options. The new object matches nothing automatically unless matching_algorithm says so. Tags, correspondents, document types and storage paths belong to you: other Paperless users do not see them until they are shared, and their names are unique per kind and owner. Custom fields have no owner and are visible to everyone, so their names are unique across all users. Returns the object as it was stored, with the ids of select options.
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": {
"kind": "<kind>",
"name": "<name>"
},
"name": "create_taxonomy_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | What to work on; it decides which of the other settings apply. | |
| name | Yes | The new name, 1 to 128 characters, unique for you. | |
| path | No | Storage paths: the folder template for stored files, e.g. '{{ created_year }}/{{ correspondent }}/{{ title }}'. Paperless refuses unknown variables. | |
| match | No | Tags, correspondents, document types, storage paths: the words, phrase or regular expression the matching algorithm uses. | |
| colour | No | Tags: the colour as #rrggbb. | |
| parent | No | Tags: name or id of the parent tag; see list_taxonomy. | |
| data_type | No | Custom fields (required): what the field holds; it cannot change later. | |
| is_inbox_tag | No | Tags: whether documents with it count as inbox documents. | |
| select_options | No | Custom fields of data_type select (required): the option labels. | |
| case_insensitive | No | Tags, correspondents, document types, storage paths: ignore case. | |
| matching_algorithm | No | Tags, correspondents, document types, storage paths: how Paperless assigns it to new documents by itself. none: never (the default when creating); any or all: any or all of the words in match; literal: the exact phrase; regex: a regular expression; fuzzy: similar words; auto: learned from your documents. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | The name; the username for users. | |
| path | No | Storage paths: the path template. | |
| match | No | The text or pattern the algorithm uses. | |
| colour | No | Tags: the colour, e.g. #a6cee3. | |
| parent | No | Tags: id of the parent tag. | |
| data_type | No | Custom fields: the data type. | |
| is_inbox_tag | No | Tags: documents with it count as the inbox. | |
| document_count | Yes | Documents the user may see that use it; null for views, users, groups. | |
| select_options | No | Custom fields of type select: the options, ids and labels. | |
| case_insensitive | No | Whether matching ignores case. | |
| matching_algorithm | No | How Paperless assigns it to new documents by itself; none: never. |