chunk_code
Parse code files into semantic chunks such as functions, classes, and methods to enhance RAG retrieval.
Instructions
Parse code file into semantic chunks (functions, classes, methods) for better RAG retrieval.
Args: file_path: Path to code file to chunk
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": {
"file_path": "<file_path>"
},
"name": "chunk_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |