Skip to content

JSON-formatted output #52

@mark-undoio

Description

@mark-undoio

Describe the feature or problem you'd like to solve

A structured output mode to easily consume the output in other tools.

Proposed solution

My proposed solution is something similar to:

  • Claude Code's --output-format stream-json
  • Codex CLI's --json

The above tools provide their output in JSONL format with each interaction (tool use, assistant messages, etc) being supplied in an easily-parsed JSON format.

This makes integration with external tools simpler, allowing the agentic functionality of copilot to be easily used from scripts, third-party tools, etc.

Example prompts or workflows

  • Integration with ad-hoc scripting (combined with the existing -p flag to supply a task) - output can be parsed using jq or similar to receive results or error codes.
  • Integration with 3rd-party tools - output can be parsed and presented in the native interface of that tool, making it easier to integrate well with the Copilot AI ecosystem.
  • Automated testing - make it easier to parse and reason about the output when evaluating prompts or testing MCP integrationsl.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions