extract_test_examples
Extract working code examples from test files to understand API usage patterns. Supports 9 languages with AST and regex parsing.
Instructions
Extract usage examples from test files. Analyzes test files to extract real API usage patterns including instantiation, method calls, configs, setup patterns, and workflows. Supports 9 languages (Python AST-based, others regex-based).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| directory | No | ||
| language | No | ||
| min_confidence | No | ||
| max_per_file | No | ||
| json | No | ||
| markdown | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |