Robot Framework Libdoc Explain
Use this skill to retrieve detailed keyword docs and argument usage from Robot Framework libraries/resources/suites. Output JSON only.
Command
Explain a keyword in standard libraries:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/rf_libdoc.py" --library BuiltIn --keyword "Log" --pretty
Explain across multiple sources:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/rf_libdoc.py" --library SeleniumLibrary --resource resources/common.resource --keyword "Open Browser" --pretty
Fallback to search if exact keyword not found:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/rf_libdoc.py" --library SeleniumLibrary --keyword "Open Brows" --search "open browser" --pretty
Notes
- Use
--library,--resource,--suite, or--spec(repeatable). Inputs are aggregated. - Output contract (stable): every call returns
{schema_version, mode, libraries, results, ...}.modeis"explain"(exact keyword found),"fallback"(no exact match → search suggestions),"search", or"list".resultsis a single array; read it without branching on top-level keys. Each item is{library, keyword, usage, score, reasons}—usageis populated on explain/fallback,score/reasonson search; non-applicable fields arenull.usage.paramsis[{name, type, default, kind}]withkind ∈ required|optional|vararg|kwarg|named_only(nameis the bare param, no: type);usage.defaultsis keyed by bare name.
- Payload is bounded: library prose
docis not included by default. Pass--include-library-docto add each library's fulldoc/sourcetolibraries[]. - Use
--tag,--include-private,--exclude-deprecatedas filters.