sw-pydocs
The sw-pydocs command prints the documentation for the installed version of the SDK.
It’s written for people and for coding agents: the output is Markdown, with full paths
to the docs, examples, and tutorials installed with the package. python -m signalwire
runs the same command.
The topics are short and describe concepts and known mistakes, then point to the
installed docs for the rest. The version, commands, built-in skills and their
parameters, REST namespaces, the SWML_ and SIGNALWIRE_ environment variables, and
every signature and docstring come from the installed package.
Commands
Topics include agents, tools, contexts, prefabs, operations, swml,
relay, rest, search, deploy, testing, and cli.
init
sw-pydocs init adds a section to the project’s AGENTS.md telling coding agents to
use sw-pydocs, and to CLAUDE.md if the project has one that doesn’t import
AGENTS.md. Run it again to update the section.
--dir
The project directory. Defaults to the current one.
--skill
Also write an Agent Skills SKILL.md under .agents/skills/ and .claude/skills/.
Print the section without writing anything.
sw-agent-init writes
the same AGENTS.md into new projects.