get_python_api_docs
Fetches Blender Python API documentation for any identifier, or lists matching modules when the exact name is unknown. Resolves exact docs, submodules, and near-miss suggestions.
Instructions
Return the Blender Python API docs for identifier, or list
modules matching a trailing-* discovery pattern.
identifier should be a fully-qualified Python name (e.g.
bpy.app or bpy.types.Scene.frame_current).
The trailing-* forms are supported as discovery entry-points:
*enumerates the top-level modules (bpy,bmesh,mathutils,gpu, ...).X.*enumerates the direct-child identifiers under the X namespace (bpy.*->bpy.app,bpy.context, ...).
Both return a namespace response even when X.rst would
otherwise resolve to exact; the .* form lets an agent
force the child listing.
The response always carries kind, found, and identifier.
The remaining keys depend on kind:
"exact"(found=True):<identifier>.rstwas read. Extra keys:content(RST text),examples. When the file exceeds 32 KB,contentis replaced with a dot-point summary of the file's top-level definitions (prefixed by a header noting the truncation) andexamplesis empty - re-query individual members for their rendered blocks."namespace"(found=True): no<identifier>.rstbut<identifier>.<child>.rstsiblings exist. Extra key:submodules(list of child identifiers)."definition"(found=True): identifier is defined inside a parent RST (e.g.bpy.props.IntPropertylives inbpy.props.rst). Extra keys:content(rendered block),examples."partial"(found=False): the parent RST was located but the trailing component isn't defined in it. Extra keys:parentthe identifier whose RST was loaded.availabletop-level definitions in that RST.submodulessibling identifiers<parent>.<child>with their own RSTs, filtered to those whose last component contains every character of the missing tail.
For a toctree landing page like
bpy.typesavailableis empty andsubmodulesis the near-miss list; for a self-contained module likebpy.propsit's the reverse."suggestions"(found=False): no direct match, but identifier appears as a component of other files. Extra key:suggestions(list of full identifiers)."missing"(found=False): nothing matched.
examples (present on the exact and definition kinds)
is a list of {path, content} entries referenced from this documentation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| identifier | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||