What changed
Perplexity released programmatic_tool_calling for its Agent API. Models can write JavaScript that invokes approved web, finance, MCP and sandbox tools in parallel inside an embedded QuickJS WebAssembly runtime, filtering raw results before they enter model context.
Why it matters
Moving multi-tool fan-out into one typed script can cut model round trips and context load, but it also concentrates tool authority and error handling in generated code that needs the same permission, timeout and output controls as any agent runtime.
What to do
Replay one broad research task with direct tool calls and Code Mode using the same model, prompt and spend ceiling. Compare completeness, cost, latency, tool-denial behavior, filesystem effects and recovery from a malformed or stalled script.
Caveat
Perplexity's WANDR accuracy, cost and latency results are vendor-run on the first 100 tasks of its own benchmark. Code Mode is enabled by default only in current high, xhigh and ultra effort presets, and custom tools require explicit programmatic caller permission.