cliprompt_add_validation
Add input validation to prompts to enforce required fields and format checks. This ensures prompts fail fast with clear errors instead of causing runtime issues.
Instructions
Add input validation to prompts
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": {
"directory": "<directory>"
},
"name": "cliprompt_add_validation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | ||
| directory | Yes | Project directory |