spoolman_upsert_field
Add or update custom fields for vendor, filament, or spool entities to store additional tracking data.
Instructions
Add or update a custom extra field for a given entity type.
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": {
"entity_type": "<entity_type>",
"key": "<key>",
"order": "<order>",
"field_type": "<field_type>"
},
"name": "spoolman_upsert_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The field key (used as identifier) | |
| name | No | Display name for the field | |
| unit | No | Unit of measurement (e.g. mm, g) | |
| order | Yes | Display order | |
| choices | No | Available choices (only for field_type='choice') | |
| field_type | Yes | Data type of the field | |
| entity_type | Yes | The entity type: 'vendor', 'filament', or 'spool' | |
| default_value | No | Default value for the field |