# `navigation`

The `navigation` option under `grpc` controls the page actions on gRPC reference pages.
Use it to hide the page actions on these pages, or to display other actions than on the other pages of the project.

The option replaces the root [`navigation.actions`](/docs/platform/config/navigation) option for these pages.
An option that you do not set under `grpc` keeps its root value.
The `nextButton` and `previousButton` options of the root `navigation` option are not available under `grpc`.

## Options

| Option | Type | Description |
| --- | --- | --- |
| actions | [PageAction object](#pageaction-object) | Controls the actions that appear on gRPC reference pages. |

### PageAction object

| Option | Type | Description |
| --- | --- | --- |
| hide | boolean | Hides the page actions. Default: `false`. |
| items | [string] | Lists the items that appear on the page and defines their order. The project hides items that you omit from the list.  Allowed values:  - `copy`: copy the page content as Markdown to the clipboard. - `view`: view the page content as Markdown in a new tab. - `chatgpt`: ask ChatGPT about this page.   Supported only on public pages. - `claude`: ask Claude about this page.   Supported only on public pages. - `grok`: ask Grok about this page.   Supported only on public pages. - `docs-mcp-claude`: connect to the MCP server with Claude.   Opens claude.ai with the server name and URL filled in. - `docs-mcp-vscode`: connect to the MCP server with VS Code. - `docs-mcp-cursor`: connect to the MCP server with Cursor. - `copy-mcp-url`: copy the MCP server URL to the clipboard.  The `copy`, `view`, `chatgpt`, `claude`, and `grok` actions require `seo.llmstxt.hide` set to `false` (default). These actions also hide when `search.hide` is set to `true` or when the page is excluded from search. The `docs-mcp-*` and `copy-mcp-url` actions require `mcp.hide` and `mcp.docs.hide` set to `false` (default).  The first item in the list is the default action. Default: `copy`, `view`, `chatgpt`, `claude`, `grok`, `docs-mcp-claude`, `docs-mcp-vscode`, `docs-mcp-cursor`, `copy-mcp-url` in this order. |

## Examples

### Hide page actions on API pages

The following example hides the page actions on gRPC reference pages.
The other pages of the project keep their page actions.

```yaml
grpc:
  navigation:
    actions:
      hide: true
```

### Display page actions only on API pages

The following example hides the page actions on all pages of the project, and displays the `copy` and `view` actions on gRPC reference pages:

```yaml
navigation:
  actions:
    hide: true
grpc:
  navigation:
    actions:
      hide: false
      items:
        - copy
        - view
```

### Set the page actions of one API

The following example displays only the `copy` action on the pages of one API.
The other APIs keep the page actions of the `grpc` option or of the root option.

```yaml
apis:
  cafe:
    root: ./apis/cafe/cafe.proto
    grpc:
      navigation:
        actions:
          items:
            - copy
```

## Resources

- **[`navigation`](/docs/platform/config/navigation)** - Page actions and navigation buttons for all the pages of your project
- **[`info`](/docs/platform/config/grpc/info)** - Title, version, and description of a gRPC API
- **[Configuration options](/docs/platform/config)** - All the other options for your project
