New Item
items_newAllocates a sequential part number, registers a new item in an items.json sidecar (creating it if absent), and writes the updated registry.
Instructions
Allocate a non-significant sequential part number and register a new item in an items.json sidecar (created if absent), writing it back. The reserved rev / lifecycle fields are seeded with held defaults (the #141 state machine, not C1).
registry: path to the items.json sidecar (created if it does not exist). item: the new item's stable logical id (what manifests reference). files: optional list of artifact paths the item maps to. metadata: optional free-form, queryable attributes (where "meaning" lives).
Returns {part_number, item, registry}.
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": {
"registry": "<registry>",
"item": "<item>"
},
"name": "items_new"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | ||
| files | No | ||
| metadata | No | ||
| registry | Yes | ||
| workspace | No | Run this call in this named workspace |