Update a feature
onshape_update_featureReplaces an existing feature payload—for example, to change a dimension—by posting the full replacement feature JSON.
Instructions
Replace an existing feature's payload, e.g. to change a dimension. Post the whole feature JSON.
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": {
"doc": "<doc>",
"ws": "<ws>",
"elem": "<elem>",
"feature_id": "<feature_id>",
"feature": "<feature>"
},
"name": "onshape_update_feature"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ws | Yes | Workspace id — the <ws> segment of the document URL. | |
| doc | Yes | Document id — the <doc> in cad.onshape.com/documents/<doc>/w/<ws>/e/<elem>. | |
| elem | Yes | Element id (tab) — the <elem> segment of the document URL. | |
| feature | Yes | The full replacement feature JSON. | |
| feature_id | Yes | Id of the feature to replace. |