diff --git a/documentation/docs/guides/environment-variables.md b/documentation/docs/guides/environment-variables.md index 53e1a85ce228..adef53f4f6a5 100644 --- a/documentation/docs/guides/environment-variables.md +++ b/documentation/docs/guides/environment-variables.md @@ -237,7 +237,7 @@ These variables control how goose handles [tool execution](/docs/guides/goose-pe | `GOOSE_TOOLSHIM_OLLAMA_MODEL` | Specifies the model for [tool call interpretation](/docs/experimental/ollama) | Model name (e.g. llama3.2, qwen2.5) | System default | | `GOOSE_CLI_MIN_PRIORITY` | Controls verbosity of [tool output](/docs/guides/managing-tools/adjust-tool-output) | Float between 0.0 and 1.0 | 0.0 | | `GOOSE_CLI_TOOL_PARAMS_TRUNCATION_MAX_LENGTH` | Maximum length for tool parameter values before truncation in CLI output (not in debug mode) | Integer | 40 | -| `GOOSE_DEBUG` | Enables debug mode to show full tool parameters without truncation | "1", "true" (case insensitive) to enable | false | +| `GOOSE_DEBUG` | Enables debug mode to show full tool parameters without truncation. Can also be toggled during a session using the `/r` [slash command](/docs/guides/goose-cli-commands#slash-commands) | "1", "true" (case insensitive) to enable | false | | `GOOSE_SEARCH_PATHS` | Additional directories to search for executables when running extensions | JSON array of paths (e.g., `["/usr/local/bin", "~/custom/bin"]`) | System PATH only | No | **Examples** diff --git a/documentation/docs/guides/goose-cli-commands.md b/documentation/docs/guides/goose-cli-commands.md index 40841620d143..2f5f3ffc4a2d 100644 --- a/documentation/docs/guides/goose-cli-commands.md +++ b/documentation/docs/guides/goose-cli-commands.md @@ -665,6 +665,7 @@ Once you're in an interactive session (via `goose session` or `goose run --inter - **`/prompts [--extension ]`** - List all available prompts, optionally filtered by extension - **`/recipe [filepath]`** - Generate a recipe from the current conversation and save it to the specified filepath (must end with .yaml). If no filepath is provided, it will be saved to ./recipe.yaml - **`/compact`** - Compact and summarize the current conversation to reduce context length while preserving key information +- **`/r`** - Toggle full tool output display (show complete tool parameters without truncation) - **`/t`** - Toggle between `light`, `dark`, and `ansi` themes. [More info](#themes). - **`/t `** - Set theme directly (light, dark, ansi) diff --git a/documentation/docs/guides/managing-tools/adjust-tool-output.md b/documentation/docs/guides/managing-tools/adjust-tool-output.md index 803fe32c3324..e9df074abbe7 100644 --- a/documentation/docs/guides/managing-tools/adjust-tool-output.md +++ b/documentation/docs/guides/managing-tools/adjust-tool-output.md @@ -83,5 +83,17 @@ Next, choose one of the available modes: - Shows all tool outputs - Example: Shell command outputs - Most verbose level + +### Toggle Parameter Truncation + +During an active session, use the `/r` slash command to toggle whether tool parameters are truncated or shown in full: + +```sh +Context: ●○○○○○○○○○ 5% (9695/200000 tokens) +( O)> /r +✓ Full tool output enabled - tool parameters will no longer be truncated +``` + +This is useful when you need to see complete file paths, URLs, or command arguments. Type `/r` again to return to truncated output. - \ No newline at end of file +