From f461296e8aed2009b8cc00bf50c91ef02aa06749 Mon Sep 17 00:00:00 2001 From: fn-registry agent Date: Sat, 6 Jun 2026 12:49:52 +0200 Subject: [PATCH] chore: initial sync --- tools_read.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools_read.go b/tools_read.go index 657dc2b..8460ba7 100644 --- a/tools_read.go +++ b/tools_read.go @@ -108,10 +108,13 @@ func (d *deps) handlePagePerceive(_ context.Context, _ mcp.CallToolRequest, a pa } } + // `fn run` pasa los argumentos POSICIONALMENTE a la función del pipeline + // (no como flags argparse): el orden debe coincidir con la firma + // cdp_perceive_outline(debug_port, tab_id, max_chars). cmd := exec.Command(filepath.Join(root, "fn"), "run", "cdp_perceive_outline", - "--debug-port", fmt.Sprint(port), - "--tab-id", tabID, - "--max-chars", fmt.Sprint(maxChars), + fmt.Sprint(port), + tabID, + fmt.Sprint(maxChars), ) cmd.Dir = root var stdout, stderr strings.Builder