Get code examples
get_examplesWorking TypeScript examples for a member path, for a namespace, or for a topic given as keywords. Each example names the member it belongs to and links its reference page. Examples are written for the API version the server holds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_examples"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | A member or namespace path, for example occt.shapes.solid.createBox or occt.fillets | |
| limit | No | How many examples, 5 by default | |
| topic | No | Keywords to find examples by, when no path is known | |
| engine | No | Prefer members published for this engine when searching by topic | |
| version | No | The API version; omit for the version the server holds |