feat(tools): update SpawnStatusTool description and parameter documentation for clarity

This commit is contained in:
SHINE-six 2026-03-14 17:26:07 +08:00
parent eb8c193c85
commit e7518e8e41

View file

@ -25,11 +25,12 @@ func (t *SpawnStatusTool) Name() string {
} }
func (t *SpawnStatusTool) Description() string { func (t *SpawnStatusTool) Description() string {
return "Get the status of spawned subagents associated with the current tool context " + return "Get the status of spawned subagents. " +
"(for example, the current channel or chat). Returns a list of all such subagents " + "Returns a list of all subagents and their current state " +
"and their current state (running, completed, failed, or canceled), or retrieves " + "(running, completed, failed, or canceled), or retrieves details " +
"details for a specific subagent task when task_id is provided. If the tool is " + "for a specific subagent task when task_id is provided. " +
"invoked without any associated context, the result will be empty." "Results are scoped to the current conversation when a channel/chat " +
"context is available; without context (e.g. CLI), all tasks are listed."
} }
func (t *SpawnStatusTool) Parameters() map[string]any { func (t *SpawnStatusTool) Parameters() map[string]any {
@ -39,8 +40,7 @@ func (t *SpawnStatusTool) Parameters() map[string]any {
"task_id": map[string]any{ "task_id": map[string]any{
"type": "string", "type": "string",
"description": "Optional task ID (e.g. \"subagent-1\") to inspect a specific " + "description": "Optional task ID (e.g. \"subagent-1\") to inspect a specific " +
"subagent. When omitted, all known subagents in the current tool context " + "subagent. When omitted, all visible subagents are listed.",
"are listed; if the tool has no associated context, the result will be empty.",
}, },
}, },
"required": []string{}, "required": []string{},