get_docs
Retrieve Elixir module and function documentation from compiled .beam files to understand parameters and usage. Ideal for clarifying API behavior without network access.
Instructions
Get @moduledoc/@doc documentation for an Elixir module or function. Reads from compiled .beam files (local, no network).
WHEN TO USE: You need to understand what a function does, its parameters, or how to use a module. NOT FOR: Finding what calls a function (use xref_callers). Evaluating code (use project_eval).
Examples: "GenServer", "String.split", "String.split/2", "c:GenServer.handle_call/3" (prefix c: for callbacks).
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": {
"reference": "<reference>"
},
"name": "get_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reference | Yes | Module name, Module.function, or Module.function/arity |