feat(cli): add --json global flag for structured output - #40284
Conversation
10de008 to
ccc4c60
Compare
| channelSessions?: ChannelSession[]; | ||
| }; | ||
|
|
||
| export interface Output { |
There was a problem hiding this comment.
I like the mcp Response with sections more than this interface...
ccc4c60 to
8be4796
Compare
This comment has been minimized.
This comment has been minimized.
10a511e
into
microsoft:main
Test results for "MCP"14 failed 6355 passed, 976 skipped Merge workflow run. |
Summary
--jsonflag: everyplaywright-clireply is a single pretty-printed JSON document on stdout (local commands and every MCP tool command)._meta.jsonalongside_meta.cwdand_meta.raw; implies--raw.Outputinterface withTextOutput/JsonOutputimplementations — removes allif (json) ... else ...branching fromprogram.tsand stripsconsole.logfromsession.ts.skill/references/json-output.mdreference.