Skip to content

discussion-parser

by official

Discussion

Parse discussion markdown into structured JSON

discussion utility orchestrated-discussions
# discussion-parser

Parse discussion markdown into structured JSON

## Installation

This is a CmdForge tool. Install it from the registry:

```bash
cmdforge install discussion-parser
```

## Usage

The `discussion-parser` tool accepts discussion markdown via stdin and outputs structured JSON.

```bash
# Parse discussion from a file
cat discussion.md | discussion-parser

# Parse discussion from echo
echo "## Agent 1

Hello world

## Agent 2

Response here" | discussion-parser

# Parse and pipe to jq for processing
cat discussion.md | discussion-parser | jq '.messages[0].content'
```

## Arguments

This tool takes no arguments.

## How It Works

The tool follows a single-step pipeline:

1. **Code Step (step_1)**: Executes Python code to parse the discussion markdown format into a structured JSON representation with agents, messages, and metadata

The final output is the parsed JSON structure.

## Dependencies

None

No reviews yet.

Issues

No issues reported for this tool.