tool.execute.after output has two different formats #1903

Closed
opened 2026-02-16 17:33:10 -05:00 by yindo · 1 comment
Owner

Originally created by @kynnyhsap on GitHub (Oct 1, 2025).

Originally assigned to: @thdxr on GitHub.

i noticed undocumented format what was returned by the tool.execute.after output. i don't know if this is intentional but i would rather have one standardised output

type declarations form plugin sdk says it should return this

Image
{
  "title": "git --version",
  "metadata": {
    "output": "git version 2.50.1 (Apple Git-155)\n",
    "exit": 0,
    "description": "Check Git version"
  },
  "output": "git version 2.50.1 (Apple Git-155)\n"
}

but sometimes it returns this


{
  "content": [
    {
      "type": "text",
      "text": "{\n  \"items\": [\n   ..."
    }
  ],
  "isError": false
}

this is on v0.13.7

Originally created by @kynnyhsap on GitHub (Oct 1, 2025). Originally assigned to: @thdxr on GitHub. i noticed undocumented format what was returned by the `tool.execute.after` output. i don't know if this is intentional but i would rather have one standardised output type declarations form plugin sdk says it should return this <img width="1748" height="528" alt="Image" src="https://github.com/user-attachments/assets/c9571c60-b51e-4706-a826-a5f47ddd42e0" /> ```json { "title": "git --version", "metadata": { "output": "git version 2.50.1 (Apple Git-155)\n", "exit": 0, "description": "Check Git version" }, "output": "git version 2.50.1 (Apple Git-155)\n" } ``` but sometimes it returns this ```json { "content": [ { "type": "text", "text": "{\n \"items\": [\n ..." } ], "isError": false } ``` this is on v0.13.7
yindo closed this issue 2026-02-16 17:33:10 -05:00
Author
Owner

@rekram1-node commented on GitHub (Oct 1, 2025):

hm interesting we will look into this

@rekram1-node commented on GitHub (Oct 1, 2025): hm interesting we will look into this
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1903