Skip to content

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

@kynnyhsap

Description

@kynnyhsap

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions