transformAfterToolResult

Transform tool result before adding to history. Return modified string.