You're viewing a demo portfolio

Join the waitlist
PRSM

unflatten_messages

Active

Tool of io.github.shayaShav/flatten-mcp

declared in 2.6.1

Restore a conversation flattened by flatten_messages: re-inlines every tool_result whose content is a [FLATTENED id=...] marker from the matching entry in "extracted", byte-for-byte. Markers with no matching entry are left in place. Purely functional — no disk, no network, input never mutated.

Parameters schema

{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "messages",
    "extracted"
  ],
  "properties": {
    "messages": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {}
      },
      "description": "The flattened messages[] array (the \"messages\" field of a flatten_messages result)."
    },
    "extracted": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {}
      },
      "description": "The \"extracted\" array returned by flatten_messages for this conversation."
    }
  },
  "additionalProperties": false
}

What this tool wraps· 1 endpoint

min confidence0.700.50

Parent server

io.github.shayaShav/flatten-mcp

https://github.com/shayaShav/flatten-mcp

2/7 registries
View full server →
unflatten_messages — io.github.shayaShav/flatten-mcp — PRSM MCP