Perplexity
Use the bundled scripts for all Perplexity work. Max-tier models are removed.
Setup
Install the Browser Tools dependency declared in package.json:
npm ci
Token safety
Never print or store the session token unless the user explicitly asks. Scripts read tokens from --token, --token-file, Browser Tools copied Chrome profile, PERPLEXITY_SESSION_TOKEN, or PPLX_SESSION_TOKEN. Browser Tools extraction starts a synced sandbox copy of the Default Chrome profile, navigates to Perplexity, and reads the session cookie through DevTools. Set PPLX_BROWSER_TOOLS_PROFILE or CHROME_PROFILE for another profile, or PPLX_BROWSER_TOOLS_TASK for a Browser Tools task profile. Commands retry transient WebUI 403 and query-processing failures according to --auth-retries. If an environment or token-file token is expired, commands retry once with Browser Tools when available. If token extraction fails but normal Chrome is logged in, verify the login is in the selected profile before trying another auth path.
Quick research
Run from the Perplexity skill directory:
uv run scripts/pplx.py ask "latest verified news about Iran war" \
--model openai/gpt-5.4-thinking \
--time-range week \
--source-focus all \
--citation-mode markdown \
--format markdown
Direct model tools
Each direct tool is an executable script named for the tool. They all accept query, --search-focus, --source-focus, --time-range, --language, --latitude, --longitude, --format, and --save.
scripts/pplx_gpt54_thinking "research question" --source-focus all --time-range week
Available direct tools:
scripts/pplx_bestscripts/pplx_deep_researchscripts/pplx_sonarscripts/pplx_gpt54scripts/pplx_gpt54_thinkingscripts/pplx_gemini31_pro_think_lowscripts/pplx_gemini31_pro_think_highscripts/pplx_claude_s46scripts/pplx_claude_s46_thinkscripts/pplx_kimi_k26_instantscripts/pplx_kimi_k26_thinkingscripts/pplx_nemotron3_super_think
General commands
uv run scripts/pplx.py models # list exposed model IDs and direct tools
uv run scripts/pplx.py token # check token availability without printing it
uv run scripts/pplx.py token --validate # live read-only auth check without printing it
uv run scripts/pplx.py ask "question" # direct client, sources, files, streaming, Spaces, multi-turn
When to use which path
- Use direct model tools when the user asks for a specific tool capability by name.
- Use
askfor normal agent work, current-news research, citations, source lists, file uploads, streaming, Spaces, and multi-turn turns in one process.
More options and examples are in REFERENCE.md and EXAMPLES.md.