feature_execute
Executes a complete feature as an atomic transaction on a specified drawing, applying ordered create, insert, and transform actions and rolling back all changes if any step fails.
Instructions
Execute one complete generic feature as a feature-local logical transaction bound to caller-supplied document PID and predecessor fingerprint.
Side-effects: Mutates active drawing state atomically; rolls back on failure. Disambiguation: Preferred route for multi-step feature creation; rolls back cleanly if any action fails.
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>",
"feature_id": "<feature_id>",
"feature_sequence": "<feature_sequence>",
"correlation_id": "<correlation_id>",
"actions": "<actions>"
},
"name": "feature_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actions | Yes | Ordered list of typed micro-chunk actions (create, insert, transform) | |
| feature_id | Yes | Unique feature identifier for this logical transaction | |
| document_pid | Yes | Persistent document identifier (PID) matching active CAD drawing | |
| correlation_id | Yes | Caller correlation ID for tracing and idempotency | |
| feature_sequence | Yes | Monotonic sequence number within the feature stream | |
| expected_parent_fp | Yes | Expected predecessor semantic fingerprint for optimistic locking |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||