generate_csp
Generate Content-Security-Policy header from structured directives input.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_csp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directives | No | CSP directives map, e.g. { 'script-src': ['self', 'nonce-abc123'] } | |
| report_uri | No | Report URI for CSP violations | |
| report_only | No | Use Content-Security-Policy-Report-Only header |