Suggest a file split (refactor prompt)
suggest_file_splitAnalyze an oversized source file and produce a ready-to-execute split proposal: exported symbols grouped by prefix, target modules, barrel-file guidance, and an agent prompt.
Instructions
Given an oversized source file (see code_file_map's splitCandidates), return a structured, ready-to-execute refactor proposal: exported symbols clustered by name-prefix, proposed target modules, keep-original-as-barrel guidance, and a prompt to hand straight to the agent. Read-only — the server never edits code; Claude executes the split.
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": {
"project": "<project>",
"file": "<file>"
},
"name": "suggest_file_split"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path relative to the project's codeLocation. | |
| project | Yes |