index_library_source
Indexes third-party library source code at a specific version from pip, npm, Go, or Cargo so API lookups match the implementation used.
Instructions
Indexes a third-party library's source code for API lookup. Fetches the actual implementation at a specific version from pip, npm, go, or cargo. Format: pip/django@4.2, npm/react@18, go/github.com/gin-gonic/gin, cargo/serde.
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": {
"package": "<package>"
},
"name": "index_library_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | Yes | Package spec: manager/name[@version] (e.g., pip/django@4.2, npm/react) |