Exact API of a symbol
apiRetrieves exact signatures and doc comments for installed library symbols, enabling agents to verify version-specific usage offline without rate limits.
Instructions
The exact signature and doc comment of one symbol in the installed version, with overloads, members (for classes, interfaces, structs, traits) and other matches. Accepts zod.z.object, z.object, tokio::spawn, axum::Router::route, pydantic.BaseModel.model_dump, gin.Context.JSON.
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": {
"symbol": "<symbol>"
},
"name": "api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Absolute path of the project (defaults to the client's workspace root or the server's working directory). | |
| symbol | Yes | Symbol path, optionally prefixed by the package name. | |
| tokens | No | Answer budget in tokens (default 1200). | |
| offline | No | Use only installed and cached files for this call (no package or upstream downloads). | |
| package | No | Package or npm public import path (e.g. zod/v4). Defaults to the package root export; unavailable or ambiguous imports are reported, not substituted. |