save_user_rule
Saves a behavioral rule you established so the agent follows it consistently. Store actionable instructions by scope—global, workspace, or repo—for repeatable preferences.
Instructions
Saves a behavioral rule the user established. Key should be descriptive (e.g. 'test_style'). Instruction must be actionable as a standalone rule. Scope: global (all repos), workspace, or repo.
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": {
"key": "<key>",
"instruction": "<instruction>",
"scope": "<scope>"
},
"name": "save_user_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Descriptive preference key (e.g. 'test_style', 'commit_format') | |
| scope | Yes | Scope level: 'global', 'workspace', or 'repo' | |
| scope_id | No | Target ID: repo ID or workspace ID. Required for workspace/repo scope, ignored for global. | |
| instruction | Yes | Actionable instruction for the agent |