sockdock_get_rule
Retrieve a rule's complete settings—channel, trigger, permissions, actions, and limits—before editing it, so you preserve the user's configuration.
Instructions
Returns every setting of one rule: channel, condition, who may run it (allowed_users), what runs, and for an agent its instructions, permissions (web, file edits, allowed commands), model and time limit; for a program its path and arguments. Use it before changing a rule with sockdock_save_rule, so you keep what the user set. Give the rule's name from sockdock_list_rules.
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": {
"name": "<name>"
},
"name": "sockdock_get_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | the rule's name (from sockdock_list_rules) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| runs | Yes | ||
| model | No | ||
| enabled | Yes | ||
| problem | No | why the rule cannot run, if it cannot | |
| last_run | No | ||
| allow_web | Yes | ||
| condition | Yes | ||
| allow_edit | Yes | ||
| channel_id | Yes | ||
| prompt_file | No | ||
| shadowed_by | No | an earlier rule in the channel that always matches first, so this rule never runs | |
| timeout_sec | No | 0 means the default (600 for agents, 300 for programs) | |
| channel_name | No | ||
| instructions | No | ||
| mention_only | No | true when the rule runs only for posts that mention the Slack app | |
| allowed_users | No | the only people who may run the rule; absent means everyone in the channel (for a DM rule, everyone in the workspace). Posts and thread replies from anyone else are ignored without a reply | |
| posts_arrived | No | whether a post from this channel has reached SockDock since it last connected; false only matters if someone has posted there since; left out when SockDock is not connected | |
| allowed_commands | Yes | Claude Code only; a codex rule always lets Codex run commands in its sandbox (the working folder only, no network) | |
| other_allowed_tools | No |