unflatten_messages
ActiveTool of io.github.shayaShav/flatten-mcp
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
}Parent server
io.github.shayaShav/flatten-mcp
https://github.com/shayaShav/flatten-mcp
2/7 registries