view_code_items
Retrieve full code definitions for known classes and methods, supporting interface-to-implementation traversal and field type inference for comparison and analysis.
Instructions
[Precise Code Retrieval] Best for cases where the file path and item name are known. Batch returns full definition blocks for classes/methods/functions. If the input is a Java interface and implementations exist, it will attempt to traverse to Impl classes and return same-named method snippets (multiple implementations are supported and labeled). It also parses fields referenced in the method snippet to infer their type-to-class paths. Ideal for interface/implementation comparison, fast location of key methods, and precise extraction before call-chain analysis; if the path or name is unknown, use file search tools first.
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": {
"Items": "<Items>"
},
"name": "view_code_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Items | Yes | List of code items to query. |