generate_csp_config
Generate Content Security Policy (CSP) middleware with nonce generation, violation reporting, and per-framework integration (Express, Next.js, Django, Rails)
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": {
"framework": "<framework>"
},
"name": "generate_csp_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nonce | No | ||
| framework | Yes | ||
| directives | No | ||
| reportOnly | No |