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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Items | Yes | List of code items to query. |