lookup_api
Look up Blender Python API names, properties, operators, and modules in your running Blender so bpy code matches the installed version before you write it.
Instructions
Look up the Blender Python API in the user's running Blender, so names match their version. Use it before writing bpy code you are unsure of.
``query`` is either an identifier or search words:
- a type: ``Scene``, ``bpy.types.RenderSettings`` (properties with types,
defaults, enum identifiers; node types also list their input/output sockets,
e.g. ``ShaderNodeBsdfPrincipled``)
- a member: ``bpy.types.RenderSettings.engine``, ``Object.modifiers``
- an operator: ``bpy.ops.mesh.primitive_cube_add`` (its arguments)
- a Python module or function: ``mathutils.Vector``, ``bmesh.ops.bevel``
- words: ``bevel modifier width`` (matching types, properties and operators)
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": "lookup_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||