get_test_examples
Search test files for usage examples of a function or class. Returns code snippets showing how the entity is used in tests.
Instructions
Find usage examples for a function or class by searching test files in the indexed repository. Returns code snippets showing how the entity is used in tests.
Requires: index_repository must be called 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": {
"repo_path": "<repo_path>",
"entity_name": "<entity_name>"
},
"name": "get_test_examples"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | Path to the indexed repository | |
| entity_name | Yes | Name of the function or class to find examples for | |
| max_examples | No | Maximum number of examples to return (default: 5) |