From 2275d766a68bcd0699b46c6bd311696b815f5f18 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 2 Jun 2026 02:39:10 +0000
Subject: [PATCH] docs: document command return values for custom resource
commands
Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
Address review feedback: add TypeScript Markdown example, fix heading style, imp
---
.../src/content/docs/dashboard/explore.mdx | 6 +-
.../fundamentals/custom-resource-commands.mdx | 105 +++++++++++++++++-
.../docs/fundamentals/http-commands.mdx | 2 +-
.../content/docs/whats-new/aspire-13-3.mdx | 2 +-
4 files changed, 110 insertions(+), 5 deletions(-)
diff --git a/src/frontend/src/content/docs/dashboard/explore.mdx b/src/frontend/src/content/docs/dashboard/explore.mdx
index 53c5cb0f9..d1726d0e0 100644
--- a/src/frontend/src/content/docs/dashboard/explore.mdx
+++ b/src/frontend/src/content/docs/dashboard/explore.mdx
@@ -579,13 +579,17 @@ Selecting **View response** opens the text visualizer with the command's result
+
+
The unread count resets when you open the notification center. To clear all notifications, select the **Dismiss all** button in the dialog.
-For information on returning messages from custom commands, see [Custom resource commands](/fundamentals/custom-resource-commands/).
+For information on returning command result payloads from custom commands, see [Custom resource commands](/fundamentals/custom-resource-commands/).
## Settings dialog
diff --git a/src/frontend/src/content/docs/fundamentals/custom-resource-commands.mdx b/src/frontend/src/content/docs/fundamentals/custom-resource-commands.mdx
index 9f0e592a6..ce3618057 100644
--- a/src/frontend/src/content/docs/fundamentals/custom-resource-commands.mdx
+++ b/src/frontend/src/content/docs/fundamentals/custom-resource-commands.mdx
@@ -629,7 +629,7 @@ The `ExecuteCommandResult` type carries the outcome of a command. It exposes the
- **`Success` / `success`** _(boolean)_ — Whether the command completed successfully.
- **`Canceled` / `canceled`** _(boolean)_ — Whether the command was canceled by the user.
- **`Message` / `message`** _(string?)_ — A human-readable message that surfaces in the dashboard [notification center](/dashboard/explore/#notification-center) and CLI output. Used for both success messages and error messages.
-- **`Data` / `data`** _(`CommandResultData?`)_ — Optional structured output (plain text, JSON, or Markdown). See [Return structured output from a command](#return-structured-output-from-a-command).
+- **`Data` / `data`** _(`CommandResultData?`)_ — Optional structured output (plain text, JSON, or Markdown). See [Return a result from a command](#return-a-result-from-a-command).