generate_class
Creates Apex class files and associated metadata for Salesforce development, saving them to a 'classes' directory or a specified output directory.
Instructions
Generates the Apex *.cls file and associated metadata file. These files must contained in a parent directory called "classes" in your package directory. Either run this command existing directory of this name, or use the --output-dir flag to generate one or point to an existing one.
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": {
"input": "<input>"
},
"name": "generate_class"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes |