List custom features
list_custom_featuresLists custom Feature Studio scripts available for adding to a Part Studio, with each feature's type, namespace, parameters, defaults and options, plus features already used.
Instructions
List custom features (Feature Studio scripts such as Thread Creator) that add_custom_feature can add: feature_type, namespace and every parameter with its type, unit, default and options. Also lists the custom features this Part Studio already uses. Built-in Onshape features are not listed - use the dedicated tools for those.
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_id": "<document_id>",
"element_id": "<element_id>"
},
"name": "list_custom_features"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| element_id | Yes | Element (tab) ID: the string after /e/ in the Onshape URL. Get it from get_document. | |
| document_id | Yes | Onshape document ID: the 24-character hex string after /documents/ in the document URL. Get it from list_documents. | |
| workspace_id | No | Workspace ID (the string after /w/ in the URL). Optional - defaults to the document's main workspace. | |
| feature_studio_url | No | Optional browser URL of a Feature Studio tab (.../documents/<did>/w|v|m/<id>/e/<eid>). Lists the custom features that studio defines instead of the ones this Part Studio already knows about. Use it for a Feature Script added to your account that is not yet in this Part Studio. To add features from another document, use its version URL (/v/). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||