Expose scripted custom previewer tabs on MCP (get_flow_detail / get_flows)
Description
Scripted custom views already exist in the GUI:
request.customPreviewerTabs["Role"] = JSON.stringify({ model: request.body.model }, null, 2);
MCP get_flow_detail returns headers, body preview, query, cookies. It does not return customPreviewerTabs, Comment, or Color. An agent has to re-parse the raw body and cannot see the view a human already built.
Why this feature/change is important?
Proxyman MCP is how coding agents drive a live session. If scripts compute a view for the GUI, that same view should be a first-class MCP field. Otherwise humans and agents debug two different representations of the same flow.
Suggested behavior
- Include
customPreviewerTabs(request and response),comment, andcoloronget_flow_detail. - Optionally list those keys on
get_flows/filter_flowsso an agent can filter without opening every body. - Same script, two consumers: GUI tab and MCP. No extra header mutation.
Here is your Beta build: https://assets.proxyman.com/beta/Proxyman_6.16.0_mcp_with_custom_tabs.dmg
It also includes the fix #2745
- ✅ Include customPreviewerTabs (request and response), comment, and color on get_flow_detail
Optionally list those keys on get_flows / filter_flows so an agent can filter without opening every body.
Only expose the tab name on the get_flows and filter_flows, because I want to keep it simple. You have to use get_flow_detail to query the content of your custom scripting tab 👍
I can't believe my eyes! Thanks so much! I thought this one would take the longest to implement and I weren't even sure you would agree. This is amazing. I had a custom view previously that calculated an LLM's tokens, cache rates, and other metrics and I wanted a clear way to expose it to an agent. Before you did it, I had to maintain a custom harness with its own scripts and a skill and it was so ugly.
This is perfect, I am honestly so so so grateful. Your app is worth every penny and should be on any device. Please keep it up!