diff --git a/site/src/pages/AgentsPage/components/ChatElements/tools/ToolIcon.tsx b/site/src/pages/AgentsPage/components/ChatElements/tools/ToolIcon.tsx
index 16e9bc148b..913b8d0bc8 100644
--- a/site/src/pages/AgentsPage/components/ChatElements/tools/ToolIcon.tsx
+++ b/site/src/pages/AgentsPage/components/ChatElements/tools/ToolIcon.tsx
@@ -81,7 +81,6 @@ export const ToolIcon: React.FC<{
return ;
case "read_file":
case "read_skill":
- case "read_skill_file":
return ;
case "write_file":
case "edit_files":
diff --git a/site/src/pages/AgentsPage/components/ChatElements/tools/ToolLabel.tsx b/site/src/pages/AgentsPage/components/ChatElements/tools/ToolLabel.tsx
index 078aa5d9ae..4b465e7b03 100644
--- a/site/src/pages/AgentsPage/components/ChatElements/tools/ToolLabel.tsx
+++ b/site/src/pages/AgentsPage/components/ChatElements/tools/ToolLabel.tsx
@@ -12,21 +12,6 @@ export const ToolLabel: React.FC<{
const parsedResult = asRecord(result);
switch (name) {
- case "execute": {
- const command = parsed ? asString(parsed.command) : "";
- if (command) {
- return (
-
- {command}
-
- );
- }
- return Running command;
- }
- case "process_output":
- return (
- Reading process output
- );
case "process_signal": {
const signal = parsed ? asString(parsed.signal) : "";
const processId = parsed ? asString(parsed.process_id) : "";
@@ -66,69 +51,6 @@ export const ToolLabel: React.FC<{
}
case "process_list":
return Listing processes;
- case "read_file":
- return Reading file…;
- case "write_file": {
- const path = parsed ? asString(parsed.path) : "";
- if (path) {
- return (
-
- {path}
-
- );
- }
- return Writing file;
- }
- case "edit_files": {
- const files = parsed?.files;
- if (Array.isArray(files) && files.length === 1) {
- const path = asString((files[0] as Record)?.path);
- if (path) {
- return (
-
- {path}
-
- );
- }
- }
- return Editing files;
- }
- case "create_workspace": {
- const wsName = parsedResult ? asString(parsedResult.workspace_name) : "";
- if (wsName) {
- return Created {wsName};
- }
- return Creating workspace;
- }
- case "list_templates": {
- const count = parsedResult
- ? ((parsedResult.count as number | undefined) ?? 0)
- : 0;
- return (
-
- {count === 0
- ? "Listing templates…"
- : count === 1
- ? "Listed 1 template"
- : `Listed ${count} templates`}
-
- );
- }
- case "read_template": {
- const templateRec = parsedResult
- ? asRecord(parsedResult.template)
- : undefined;
- const tmplName = templateRec
- ? asString(templateRec.display_name) || asString(templateRec.name)
- : "";
- return (
-
- {tmplName ? `Read template ${tmplName}` : "Reading template…"}
-
- );
- }
- case "chat_summarized":
- return Summarized;
case "attach_file": {
const attachedName =
(parsedResult ? asString(parsedResult.name) : "") ||
@@ -139,52 +61,12 @@ export const ToolLabel: React.FC<{
{`Attached ${attachedName}`}
);
}
- case "computer":
- return Screenshot;
- case "propose_plan": {
- const path = parsed ? asString(parsed.path) || "PLAN.md" : "PLAN.md";
- const filename = getPathBasename(path) || "PLAN.md";
- return {filename};
- }
case "advisor":
return (
Advisor
);
- case "read_skill": {
- const skillName = parsed ? asString(parsed.name) : "";
- return (
-
- {skillName
- ? parsedResult
- ? `Read skill ${skillName}`
- : `Reading skill ${skillName}…`
- : "Reading skill…"}
-
- );
- }
- case "read_skill_file": {
- const skillName = parsed ? asString(parsed.name) : "";
- const filePath = parsed ? asString(parsed.path) : "";
- const label =
- skillName && filePath
- ? `${skillName}/${filePath}`
- : skillName || filePath || "skill file";
- return (
-
- {parsedResult ? `Read ${label}` : `Reading ${label}…`}
-
- );
- }
- case "start_workspace": {
- const wsName = parsedResult ? asString(parsedResult.workspace_name) : "";
- return (
-
- {wsName ? `Started ${wsName}` : "Starting workspace…"}
-
- );
- }
default: {
const displayName = mcpSlug ? humanizeMCPToolName(mcpSlug, name) : name;