Feature request: PostToolUse hooks that can modify tool output

Status Closed — duplicate
Maintainer reply None cached
Activity 4 comments · opened Jul 27, 2025 · closed Aug 19, 2025

Currently PostToolUse hooks can view but not modify a tools output. It would be nice to have e.g. a "transform"-type hook that can modify a tools response before it gets returned back to the model.

Example use case would be things like GitHub's MCP server, which returns extremely verbose responses by default. It would be nice to be able to add a hook that uses jq to prune that down to a reasonable size before the model sees it.

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗