self_claude
Restart Claude Code or compact context with built-in commands. Get setup instructions and help for execution.
Instructions
Execute self-Claude command.
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": {
"cmd": "<cmd>"
},
"name": "self_claude"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cmd | Yes | self_restart | self_compact | |
| help | No | Include help text | |
| setup_only | No | Return setup instructions instead of executing |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |