Get rpk Command
get_rpk_commandLook up one rpk CLI command by its full name (for example 'rpk topic create') and return its usage, help text, flags with types and defaults, aliases, subcommands, platform and Redpanda Cloud scoping, the plugin and release it ships with, and the docs page URL. Deterministic: it reads the published rpk command tree for the requested docs version (the same data the rpk reference pages are rendered from), so a command that does not exist returns found=false with close-name suggestions instead of a guess, and no LLM or search is involved. The name may omit the leading 'rpk', use command aliases at any level ('rpk topic ls', 'rpk sr schema list'), or be the page name ('rpk-topic-create'). A deprecated command returns its deprecation note and replacement, even when it is hidden and not found. Use this before ask_redpanda_question for any question about a specific rpk command's flags, defaults, or existence in a release.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Full command name, e.g. 'rpk topic create' or 'rpk cluster health'. | |
| context | No | Optional. In one concise sentence (third person), describe what the user is trying to accomplish with this request. Do not include credentials, tokens, personal data, or verbatim secrets. | |
| version | No | Docs version as its URL spells it ('26.1'), 'current' for the latest release, or a Redpanda release tag ('v26.2.2'). Omit for the latest release. An unknown value returns found=false with the list of published versions. | |
| session_goal | No | Optional. In one concise sentence (third person), the overall goal of this session: what the user is trying to get done, not just this call. Send the same goal on every call in the session, and update it only if the goal changes. Do not include credentials, tokens, personal data, or verbatim secrets. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| note | No | How the version was interpreted, when not literally. | |
| error | No | Set when the call was not answered: 'anonymous_quota_exhausted' or 'data_unavailable'. | |
| found | No | Absent only when `error` is set. | |
| limit | No | Quota refusal only. | |
| reason | No | Why found is false. | |
| command | No | ||
| dataset | No | ||
| message | No | ||
| resets_at | No | Quota refusal only. | |
| deprecated | No | Set when found is false because the command is deprecated and hidden from the tree. | |
| deprecation | No | ||
| matched_via | No | ||
| sign_in_url | No | Quota refusal only. | |
| suggestions | No | Close command names, when not found. | |
| valid_versions | No |