three.js API lookup
three_apiReads the exact API of a three.js class, method or constant from the installed version and returns its signature and correct import path, so you stop guessing when writing code.
Instructions
Exact API of a three.js class, constant or member, read from the three version installed in the project (not from memory): constructor, properties, methods, deprecations and the right import path ('three' or 'three/addons/...'). Use it before writing or changing three.js code you are not sure about. Query: Mesh, WebGLRenderer.setPixelRatio, OrbitControls. Unknown names get did-you-mean suggestions. Read-only.
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": {
"query": "<query>"
},
"name": "three_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| full | No | full class description | |
| path | No | Project folder, or a file or folder in it (relative to the server's folder; default: the project). | |
| query | Yes | Class, Class.member or constant, e.g. WebGLRenderer.setSize | |
| three | No | Path to a three package folder, when it is not in node_modules above the project. | |
| inherited | No | also list inherited members |