prompt_inject_add
Add a new prompt injection rule to the manifest to control when agent prompts apply. Set priority, session scope, and keep-or-consume behavior per inject file.
Instructions
Add a new prompt injection rule to the manifest.
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": {
"file": "<file>",
"description": "<description>"
},
"name": "prompt_inject_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Filename for the inject (e.g. 'my-alert.txt') | |
| action | No | 'keep' persists across sessions, 'consume' deletes after use. Default: 'keep' | |
| priority | No | Priority (lower = earlier). Default: 100 | |
| requires | No | Inject(s) that must be applied first. Only applied if all required injects were applied. | |
| sessions | No | Session types to apply to (e.g. 'BR', 'BEBRA'). Default: 'BEBRA' (all) | |
| description | Yes | What this injection does |