Validate CAP (cds compile)
cap_validateRuns cds compile on a CAP project to detect validation errors and confirms whether the scaffolding is valid, enabling agents to identify and fix issues before proceeding.
Instructions
The validation loop. Runs cds compile on the project and returns the errors so the agent can fix them. A clean compile means the scaffolding is valid.
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": {
"projectPath": "<projectPath>"
},
"name": "cap_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | CAP project root path with @sap/cds available |