metadata_set
Set a JSON metadata namespace on an entity only when the document PID and predecessor fingerprint match, safely storing engineering properties like part numbers or materials.
Instructions
Set one bounded schema-agnostic JSON metadata namespace only when caller document PID and predecessor fingerprint still match.
Side-effects: Attaches XData/extension dictionary metadata to entity. Disambiguation: Use to store engineering properties (part numbers, materials) on entities.
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": {
"document_pid": "<document_pid>",
"expected_parent_fp": "<expected_parent_fp>",
"semantic_pid": "<semantic_pid>",
"namespace": "<namespace>",
"value": "<value>"
},
"name": "metadata_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | JSON-serializable metadata payload | |
| namespace | Yes | Schema-agnostic metadata namespace key to set | |
| document_pid | Yes | Persistent document identifier matching active CAD drawing | |
| semantic_pid | Yes | Persistent semantic PID of the entity | |
| expected_parent_fp | Yes | Expected predecessor semantic fingerprint for optimistic locking |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||