Set message access settings
stack_set_message_accessSet the message access settings, for the account or, with agent_id, for one agent (its value wins over the account's). Give read_teammates, messages_read_only or both; a key left out is not changed, and null removes the value at that scope so it follows the next one (an agent follows the account, the account follows STACK's default). Applies at once and every change is recorded in the audit log. read_teammates (default true): the agent reads the messages of every message account of the customer; false: only its own account. messages_read_only (default false): true lets the agent read but never send, reply, forward, text or post, from any account, its own included. An agent of another customer never reads any of it. Reads of another agent's messages are recorded in the audit log without their content. Returns the values set and what is in force. Operator only, never metered.
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": "stack_set_message_access"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | No | Agent id (agt_*) of the agent this applies to. Omit for the account's values, which every agent without its own values follows. | |
| read_teammates | No | true: the agent reads its teammates' messages; false: only its own; null: follow the next scope | |
| messages_read_only | No | true: the agent reads but never sends; false: it may send; null: follow the next scope |