You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Important:** `updatedMCPToolOutput` is a **top-level field**, not part of `hookSpecificOutput`. It can be a string, object, or any JSON-serializable value.
987
+
988
+
When multiple actions execute, the last non-nil `updatedMCPToolOutput` value wins.
989
+
990
+
**Example Use Cases:**
991
+
- Sanitizing sensitive information from tool output
992
+
- Reformatting tool output for better readability
993
+
- Adding metadata to MCP tool responses
994
+
995
+
### SessionEnd Reason
996
+
997
+
SessionEnd hooks now recognize the `bypass_permissions_disabled` reason value:
998
+
999
+
```yaml
1000
+
SessionEnd:
1001
+
- conditions:
1002
+
- type: reason_is
1003
+
value: "bypass_permissions_disabled"
1004
+
actions:
1005
+
- type: output
1006
+
message: "Session ended due to bypass permissions being disabled"
1007
+
```
1008
+
1009
+
Available reason values:
1010
+
- `clear`: User cleared the session
1011
+
- `logout`: User logged out
1012
+
- `prompt_input_exit`: User exited via prompt input
1013
+
- `bypass_permissions_disabled`: Session ended because bypass permissions were disabled
0 commit comments