/fusion:query-apifrom fusion
Looks up Autodesk Fusion 360 Python API symbols (classes, methods, properties, enums) from a pre-compiled reference database. Useful when the user asks what a Fusion API symbol does or where it's defined.
Ships in fusion. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Invocation: Claude Code /fusion:query-api; Codex $fusion:query-api.
Resolve scripts/query_fusion_api.py from this active SKILL.md to an absolute path. NEVER use a
plugin-root environment variable.
Run one subcommand per question:
["python3", "<absolute-query_fusion_api.py>", "<subcommand>", "<argument>"]
| Question | Subcommand |
|---|---|
| Provenance and counts for the database in use | info |
| Find names matching a term | search <term> |
| Full detail for a class, function, or one member | show <name> |
| All members of a class | members <class> (--own drops inherited ones) |
| Base chain + direct subclasses | tree <class> |
| Which symbols' docs mention a term | doc-search <term> |
show accepts qualnames (adsk.fusion.ExtrudeFeatures), bare class names, Class.member, and bare
member names; ambiguous input returns the candidate list — pick one and re-run.
Member lookups include inherited members by default, and every one is reported against the class
that declares it: show Class.member resolves a member declared on any base, show Class lists
inherited members after the class's own, and members <class> groups them by declaring class.
The bases are walked in the order Python itself resolves an attribute, so the class reported is
the class the member really comes from. members and tree take a class; given anything else
they report no such class.
Database resolution order (explicit --db, then user cache, then the bundled copy) is owned by the
script's module docstring; pass --db only when the user names a database, and pass it before
the subcommand — after it, it is a usage error and exits 2:
["python3", "<absolute-query_fusion_api.py>", "--db", "<path>", "<subcommand>", "<argument>"]
Database missing at every location → tell user to run /fusion:compile-api
(Codex $fusion:compile-api).
Answer from script output only. Exit code 1 with a candidate list or "no matches" on stdout is a
lookup miss, not a failure — refine the name and re-run, or report the miss. Exit code 1 with an
error: line on stderr is a real failure — relay it and stop. The causes are: no database; the
file is not one; a database that opened but could not answer the subcommand (could not answer '<subcommand>'); and a class whose recorded bases have no consistent resolution order, which is
refused rather than answered from a guessed order and names the class. The last two are defects
in the database — report them as such, and recompile with /fusion:compile-api (Codex
$fusion:compile-api).
The database tracks what the Fusion runtime defines, not what the reference stubs declare. The stubs
declare a few members the shipped module does not define, and compile-api drops those, so a member
this database does not list is one a call cannot reach — that is the answer to give, not a gap to
work around. info names what the database in use dropped (stub_only_members_dropped);
compile-api's STUB_ONLY_MEMBERS owns the list and the reasoning.
For several related lookups, start the optional local JSON Lines session with serve and keep the
child process for the questions. Its exact request and response schema, error behavior, and database
snapshot contract are documented in the query session protocol.
Read-only. The bundled database ships with the plugin; NEVER edit or regenerate it here — regeneration
is compile-api's job.
What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
npx claudepluginhub lestrrat-ai/claude-code-plugins --plugin fusionOther plugins' skills for the same job