cbrowser 17.6.1 → 18.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/browser.d.ts +4 -0
  2. package/dist/browser.d.ts.map +1 -1
  3. package/dist/browser.js +37 -1
  4. package/dist/browser.js.map +1 -1
  5. package/dist/cli.js +10 -5
  6. package/dist/cli.js.map +1 -1
  7. package/dist/mcp-server-remote.d.ts.map +1 -1
  8. package/dist/mcp-server-remote.js +3 -1
  9. package/dist/mcp-server-remote.js.map +1 -1
  10. package/dist/mcp-tools/base/navigation-tools.d.ts.map +1 -1
  11. package/dist/mcp-tools/base/navigation-tools.js +33 -12
  12. package/dist/mcp-tools/base/navigation-tools.js.map +1 -1
  13. package/dist/mcp-tools/index.d.ts +1 -0
  14. package/dist/mcp-tools/index.d.ts.map +1 -1
  15. package/dist/mcp-tools/index.js +2 -0
  16. package/dist/mcp-tools/index.js.map +1 -1
  17. package/dist/mcp-tools/screenshot-utils.d.ts +45 -0
  18. package/dist/mcp-tools/screenshot-utils.d.ts.map +1 -0
  19. package/dist/mcp-tools/screenshot-utils.js +131 -0
  20. package/dist/mcp-tools/screenshot-utils.js.map +1 -0
  21. package/docs/Tool-Cognitive-Journey-Autonomous.md +264 -0
  22. package/docs/Tool-Competitive-Benchmark.md +287 -0
  23. package/docs/Tool-Empathy-Audit.md +325 -0
  24. package/docs/Tool-Hunt-Bugs.md +299 -0
  25. package/docs/Tool-Marketing-Campaign.md +292 -0
  26. package/docs/Tool-Persona-Create.md +268 -0
  27. package/docs/Tools-Accessibility.md +202 -0
  28. package/docs/Tools-Browser-Automation.md +305 -0
  29. package/docs/Tools-Cognitive-Journeys.md +227 -0
  30. package/docs/Tools-Marketing-Intelligence.md +265 -0
  31. package/docs/Tools-Overview.md +143 -0
  32. package/docs/Tools-Persona-System.md +294 -0
  33. package/docs/Tools-Session-State.md +272 -0
  34. package/docs/Tools-Testing-Quality.md +251 -0
  35. package/docs/Tools-Utilities.md +176 -0
  36. package/docs/Tools-Visual-Performance.md +272 -0
  37. package/package.json +1 -1
@@ -0,0 +1,265 @@
1
+ # Marketing Intelligence Tools
2
+
3
+ **Stop guessing which messages work. Start measuring influence.**
4
+
5
+ These 11 tools let you test which psychological influence patterns work on which audience segments. Run A/B campaigns with cognitive personas, analyze conversion funnels, and benchmark against competitors — all with scientific rigor.
6
+
7
+ ---
8
+
9
+ ## When to Use These Tools
10
+
11
+ - **You're optimizing conversion** and want to know which messaging resonates with each audience
12
+ - **You have A/B test fatigue** from inconclusive results because you're testing at the population level, not segment level
13
+ - **You want competitive intelligence** on why competitor sites convert better
14
+ - **You need to prove ROI** on UX investments with actual persona-by-persona data
15
+
16
+ ---
17
+
18
+ ## Tools
19
+
20
+ ### `marketing_personas_list`
21
+
22
+ **What it does**: List available marketing-specific personas with their influence susceptibilities.
23
+
24
+ **Why you'd use it**: See which audience segments you can test against and what motivates each one.
25
+
26
+ | Parameter | Type | Required | Description |
27
+ |-----------|------|----------|-------------|
28
+ | `category` | string | No | Filter: `b2b`, `consumer`, `all`. Default: `all` |
29
+
30
+ **Returns**: Personas with descriptions, effective influence patterns, and ineffective patterns.
31
+
32
+ ### Marketing Personas
33
+
34
+ | Persona | Category | Effective Patterns | Ineffective Patterns |
35
+ |---------|----------|-------------------|---------------------|
36
+ | `enterprise-buyer` | B2B | Authority, Social Proof, Default Bias | Scarcity, Reciprocity |
37
+ | `startup-founder` | B2B | Scarcity, Commitment, Reciprocity | Authority, Default Bias |
38
+ | `procurement-manager` | B2B | Authority, Social Proof, Default Bias | Scarcity, Reciprocity |
39
+ | `technical-evaluator` | B2B | Commitment, Reciprocity | Social Proof, Scarcity |
40
+ | `impulse-shopper` | Consumer | Scarcity, Anchoring, Social Proof | Authority, Commitment |
41
+ | `price-researcher` | Consumer | Anchoring, Scarcity, Social Proof | Authority, Unity |
42
+ | `loyal-customer` | Consumer | Unity, Reciprocity, Default Bias | Scarcity, Novelty |
43
+ | `skeptical-first-timer` | Consumer | Social Proof, Authority, Default Bias | Scarcity, Commitment |
44
+
45
+ ---
46
+
47
+ ### `marketing_campaign_create`
48
+
49
+ **What it does**: Create a multi-variant campaign that tests different page versions across multiple personas.
50
+
51
+ **Why you'd use it**: Set up structured testing to understand which variations work for which audiences.
52
+
53
+ | Parameter | Type | Required | Description |
54
+ |-----------|------|----------|-------------|
55
+ | `name` | string | Yes | Campaign name |
56
+ | `variants` | array | Yes | URLs or descriptions of variants to test |
57
+ | `personas` | array | Yes | Persona IDs to test with |
58
+ | `goal` | string | Yes | What success looks like |
59
+ | `metrics` | array | No | Custom metrics to track |
60
+
61
+ **Example**:
62
+ ```json
63
+ {
64
+ "name": "Pricing Page Optimization",
65
+ "variants": [
66
+ { "name": "Control", "url": "https://example.com/pricing" },
67
+ { "name": "Social Proof", "url": "https://example.com/pricing-v2" },
68
+ { "name": "Scarcity", "url": "https://example.com/pricing-v3" }
69
+ ],
70
+ "personas": ["enterprise-buyer", "startup-founder", "impulse-shopper"],
71
+ "goal": "Click 'Start Free Trial' button"
72
+ }
73
+ ```
74
+
75
+ **Returns**: Campaign ID, test matrix (variants × personas), ready for execution.
76
+
77
+ ---
78
+
79
+ ### `marketing_campaign_report_result`
80
+
81
+ **What it does**: Report the result of a journey back to a campaign for aggregation.
82
+
83
+ **Why you'd use it**: After running a cognitive journey for a campaign, log whether it succeeded and what friction was encountered.
84
+
85
+ | Parameter | Type | Required | Description |
86
+ |-----------|------|----------|-------------|
87
+ | `campaignId` | string | Yes | Campaign ID |
88
+ | `variantIndex` | number | Yes | Which variant was tested |
89
+ | `persona` | string | Yes | Persona that ran the journey |
90
+ | `success` | boolean | Yes | Did the persona achieve the goal? |
91
+ | `friction` | array | No | Friction points encountered |
92
+ | `timeToGoal` | number | No | Seconds to achieve goal (if successful) |
93
+ | `abandonmentReason` | string | No | Why they gave up (if unsuccessful) |
94
+
95
+ ---
96
+
97
+ ### `marketing_campaign_run` 🔒 Enterprise
98
+
99
+ **What it does**: Execute a full campaign automatically — runs cognitive journeys for every variant × persona combination.
100
+
101
+ **Why you'd use it**: Hands-off campaign execution that produces complete results without manual orchestration.
102
+
103
+ > **Enterprise Feature** — Requires CBrowser Enterprise.
104
+ > Executes multiple autonomous journeys, consuming significant compute and API resources.
105
+ > [Learn about Enterprise →](/docs/Marketing-Suite/)
106
+
107
+ | Parameter | Type | Required | Description |
108
+ |-----------|------|----------|-------------|
109
+ | `campaignId` | string | Yes | Campaign to run |
110
+ | `variantIndex` | number | No | Run only specific variant |
111
+ | `personaFilter` | array | No | Run only specific personas |
112
+
113
+ ---
114
+
115
+ ### `marketing_influence_matrix` 🔒 Enterprise
116
+
117
+ **What it does**: Generate a matrix showing which influence patterns work for which personas based on campaign results.
118
+
119
+ **Why you'd use it**: Visualize pattern effectiveness at a glance. Know exactly what works for enterprise buyers vs impulse shoppers.
120
+
121
+ > **Enterprise Feature** — Requires CBrowser Enterprise.
122
+
123
+ | Parameter | Type | Required | Description |
124
+ |-----------|------|----------|-------------|
125
+ | `campaignId` | string | Yes | Campaign to analyze |
126
+
127
+ **Returns**: Matrix with personas on one axis, influence patterns on the other, with effectiveness scores.
128
+
129
+ ---
130
+
131
+ ### `marketing_lever_analysis` 🔒 Enterprise
132
+
133
+ **What it does**: Deep analysis of which psychological levers (scarcity, authority, social proof, etc.) drove behavior for each persona.
134
+
135
+ **Why you'd use it**: Understand *why* certain variants worked, not just *that* they worked.
136
+
137
+ > **Enterprise Feature** — Requires CBrowser Enterprise.
138
+
139
+ | Parameter | Type | Required | Description |
140
+ |-----------|------|----------|-------------|
141
+ | `campaignId` | string | Yes | Campaign to analyze |
142
+
143
+ **Returns**: Lever-by-lever breakdown with evidence from journey traces.
144
+
145
+ ---
146
+
147
+ ### `marketing_funnel_analyze` 🔒 Enterprise
148
+
149
+ **What it does**: Compare conversion funnels across variants — where do people drop off, what's different between successful and failed journeys?
150
+
151
+ **Why you'd use it**: Find the specific step where each persona type struggles.
152
+
153
+ > **Enterprise Feature** — Requires CBrowser Enterprise.
154
+
155
+ | Parameter | Type | Required | Description |
156
+ |-----------|------|----------|-------------|
157
+ | `campaignId` | string | Yes | Campaign to analyze |
158
+
159
+ **Returns**: Funnel visualization per variant, drop-off points, comparison between personas.
160
+
161
+ ---
162
+
163
+ ### `marketing_compete` 🔒 Enterprise
164
+
165
+ **What it does**: Run the same personas through your site and a competitor's site, then compare conversion effectiveness.
166
+
167
+ **Why you'd use it**: Understand why competitors might be converting better for specific audience segments.
168
+
169
+ > **Enterprise Feature** — Requires CBrowser Enterprise.
170
+
171
+ | Parameter | Type | Required | Description |
172
+ |-----------|------|----------|-------------|
173
+ | `yourUrl` | string | Yes | Your site URL |
174
+ | `competitorUrl` | string | Yes | Competitor site URL |
175
+ | `goal` | string | Yes | Goal to compare (e.g., "Sign up for trial") |
176
+ | `personas` | array | No | Which personas to use |
177
+
178
+ ---
179
+
180
+ ### `marketing_audience_discover` 🔒 Enterprise
181
+
182
+ **What it does**: Discover who your site is optimized for by running randomized personas and seeing which ones convert best.
183
+
184
+ **Why you'd use it**: Find out if your site accidentally favors one audience over another.
185
+
186
+ > **Enterprise Feature** — Requires CBrowser Enterprise.
187
+ > Runs many autonomous journeys to build statistical significance.
188
+
189
+ | Parameter | Type | Required | Description |
190
+ |-----------|------|----------|-------------|
191
+ | `url` | string | Yes | URL to analyze |
192
+ | `goal` | string | Yes | Conversion goal |
193
+ | `samples` | number | No | Number of randomized personas. Default: 50 |
194
+ | `maxConcurrency` | number | No | Parallel journey limit. Default: 5 |
195
+
196
+ **Returns**: Job ID for async polling.
197
+
198
+ ---
199
+
200
+ ### `marketing_discover_status` 🔒 Enterprise
201
+
202
+ **What it does**: Check status of an audience discovery job.
203
+
204
+ **Why you'd use it**: Poll for completion of long-running audience discovery.
205
+
206
+ | Parameter | Type | Required | Description |
207
+ |-----------|------|----------|-------------|
208
+ | `jobId` | string | Yes | Job ID from `marketing_audience_discover` |
209
+
210
+ ---
211
+
212
+ ### `competitive_benchmark`
213
+
214
+ **What it does**: Compare UX metrics across competitor sites — form friction, cognitive load, navigation clarity, trust signals.
215
+
216
+ **Why you'd use it**: Understand how your UX stacks up against competitors without running full campaigns.
217
+
218
+ | Parameter | Type | Required | Description |
219
+ |-----------|------|----------|-------------|
220
+ | `urls` | array | Yes | URLs to benchmark (your site + competitors) |
221
+ | `metrics` | array | No | Specific metrics to compare |
222
+
223
+ **Example**:
224
+ ```json
225
+ {
226
+ "urls": [
227
+ "https://example.com/signup",
228
+ "https://competitor1.com/signup",
229
+ "https://competitor2.com/signup"
230
+ ]
231
+ }
232
+ ```
233
+
234
+ **Returns**: Ranking, metric scores, specific recommendations.
235
+
236
+ ---
237
+
238
+ ## Demo vs Enterprise for Marketing
239
+
240
+ | Capability | Demo | Enterprise |
241
+ |------------|------|------------|
242
+ | List marketing personas | ✅ | ✅ |
243
+ | Create campaigns | ✅ | ✅ |
244
+ | Report journey results | ✅ | ✅ |
245
+ | Run campaigns automatically | ❌ | ✅ |
246
+ | Influence matrix analysis | ❌ | ✅ |
247
+ | Lever analysis | ❌ | ✅ |
248
+ | Funnel analysis | ❌ | ✅ |
249
+ | Competitive analysis | ❌ | ✅ |
250
+ | Audience discovery | ❌ | ✅ |
251
+
252
+ **Demo gives you the framework** — create campaigns, run journeys manually with Claude, report results.
253
+ **Enterprise gives you the insights** — automated execution and deep analysis.
254
+
255
+ ---
256
+
257
+ ## Related Documentation
258
+
259
+ - [Marketing Suite](/docs/Marketing-Suite/) — Full marketing capabilities overview
260
+ - [Values Framework](/docs/Values-Framework/) — Schwartz values and motivation
261
+ - [Persona System](/docs/Tools-Persona-System/) — Creating custom personas
262
+
263
+ ---
264
+
265
+ *Last updated: v17.6.0*
@@ -0,0 +1,143 @@
1
+ # Tools Reference
2
+
3
+ **Stop writing brittle test scripts. Start having conversations with your browser.**
4
+
5
+ CBrowser provides 82 MCP tools that let Claude automate browsers using natural language. No CSS selectors. No XPath. No "element not found" errors at 3am. Just describe what you want to do, and CBrowser figures out the rest.
6
+
7
+ ---
8
+
9
+ ## The Problem We Solve
10
+
11
+ Traditional browser automation breaks constantly:
12
+ - **Selectors drift** — A developer changes a CSS class and your entire test suite fails
13
+ - **Timing issues** — Pages load at different speeds, tests randomly fail
14
+ - **Maintenance burden** — You spend more time fixing tests than writing features
15
+ - **No user insight** — Tests tell you if buttons click, not if humans can use your product
16
+
17
+ CBrowser fixes this with AI-powered automation that:
18
+ - **Self-heals** when the DOM changes
19
+ - **Waits intelligently** for content, not arbitrary timeouts
20
+ - **Simulates real users** with patience, frustration, and abandonment
21
+ - **Works through conversation** — describe intent, not implementation
22
+
23
+ ---
24
+
25
+ ## Tool Tiers
26
+
27
+ | Tier | Tools | Access | Best For |
28
+ |------|-------|--------|----------|
29
+ | **Demo** | 63 real tools | Free at `demo.cbrowser.ai/mcp` | Evaluation, small projects, learning |
30
+ | **Enterprise** | 82 tools (all Demo + 19 exclusive) | Self-hosted or authenticated | Production use, marketing intelligence, stealth testing |
31
+
32
+ The Demo tier gives you everything you need to automate browsers, run tests, and simulate users. Enterprise adds autonomous AI execution, marketing campaign analysis, and bot detection bypass for authorized testing.
33
+
34
+ ---
35
+
36
+ ## Tools by Capability
37
+
38
+ ### [Browser Automation](/docs/Tools-Browser-Automation/)
39
+ **12 tools** — Navigate, click, fill forms, extract data. The foundation of everything else.
40
+
41
+ *"Click the blue login button"* works better than `document.querySelector('.btn-primary.auth-action.mt-4')`.
42
+
43
+ ### [Cognitive Journeys](/docs/Tools-Cognitive-Journeys/)
44
+ **6 tools** — Simulate real users with patience thresholds, frustration tracking, and abandonment detection.
45
+
46
+ Find out where users give up *before* they actually do. A frustrated-first-timer abandons faster than a patient-power-user.
47
+
48
+ ### [Persona System](/docs/Tools-Persona-System/)
49
+ **15 tools** — Create and customize personas backed by 25 research-validated cognitive traits.
50
+
51
+ Test as an elderly user with low tech confidence. Or an ADHD user who skims and clicks fast. Or your exact target demographic.
52
+
53
+ ### [Testing & Quality](/docs/Tools-Testing-Quality/)
54
+ **7 tools** — Write tests in plain English, auto-repair broken selectors, detect flaky tests, map coverage.
55
+
56
+ *"Go to the checkout page, add a product, verify the cart updates"* — that's a test. No code required.
57
+
58
+ ### [Visual & Performance](/docs/Tools-Visual-Performance/)
59
+ **10 tools** — Catch visual regressions, performance degradations, cross-browser issues, and responsive breakage.
60
+
61
+ Know when your staging deploy breaks the hero image on mobile Safari before your users tell you.
62
+
63
+ ### [Marketing Intelligence](/docs/Tools-Marketing-Intelligence/)
64
+ **11 tools** — Test which psychological influence patterns work on which audience segments.
65
+
66
+ Does scarcity messaging work on enterprise buyers? (No.) Does social proof work on skeptical first-timers? (Yes.) Now you can measure it.
67
+
68
+ ### [Accessibility](/docs/Tools-Accessibility/)
69
+ **1 flagship tool** — Simulate disabilities (motor tremor, low vision, ADHD, color blindness) with WCAG remediation.
70
+
71
+ Stop guessing if your site is accessible. Experience it through the eyes of someone who can't use a mouse.
72
+
73
+ ### [Session & State](/docs/Tools-Session-State/)
74
+ **14 tools** — Save sessions, manage browser state, handle Cloudflare challenges (Enterprise), enable stealth mode (Enterprise).
75
+
76
+ Stay logged in across test runs. Bypass bot detection on sites you're authorized to test.
77
+
78
+ ### [Utilities](/docs/Tools-Utilities/)
79
+ **6 tools** — Diagnostics, health checks, API key management (Enterprise), agent-readiness audits.
80
+
81
+ Is your site ready for AI agents to navigate it? Get a score and specific recommendations.
82
+
83
+ ---
84
+
85
+ ## Quick Start
86
+
87
+ **1. Connect to the Demo MCP** (free, rate-limited):
88
+ ```
89
+ URL: https://demo.cbrowser.ai/mcp
90
+ ```
91
+
92
+ **2. Or run locally** (no rate limits):
93
+ ```bash
94
+ npx cbrowser mcp-server
95
+ ```
96
+
97
+ **3. Start automating**:
98
+ ```
99
+ Navigate to https://example.com
100
+ Click the "Get Started" button
101
+ Fill the email field with "test@example.com"
102
+ Take a screenshot
103
+ ```
104
+
105
+ That's it. No setup, no configuration, no selectors.
106
+
107
+ ---
108
+
109
+ ## Enterprise Features
110
+
111
+ Enterprise adds capabilities that require either:
112
+ - **API credits** (autonomous AI journeys that make decisions)
113
+ - **Security attestation** (stealth/Cloudflare bypass requires domain authorization)
114
+ - **Compute resources** (marketing campaigns that run hundreds of journeys)
115
+
116
+ | Feature | Why It's Enterprise |
117
+ |---------|---------------------|
118
+ | Autonomous Journeys | AI makes decisions, consumes API credits |
119
+ | Marketing Execution | Runs campaigns with real cognitive journeys |
120
+ | Marketing Analysis | Influence matrices, lever analysis, funnel comparison |
121
+ | Stealth Mode | Constitutional bypass requires signed authorization |
122
+ | Cloudflare Handling | Challenge bypass for authorized domains only |
123
+
124
+ **Demo users can still:**
125
+ - Set up marketing campaigns and report results manually
126
+ - Run cognitive journeys with Claude orchestrating (no server-side autonomy)
127
+ - Use all 63 core automation, testing, and persona tools
128
+
129
+ [Contact for Enterprise →](mailto:alexandria.shai.eden@gmail.com)
130
+
131
+ ---
132
+
133
+ ## Related Documentation
134
+
135
+ - [Getting Started](/docs/Getting-Started/) — Installation and first steps
136
+ - [MCP Server](/docs/MCP-Server/) — Claude Desktop integration
137
+ - [Remote MCP Server](/docs/Remote-MCP-Server/) — claude.ai integration
138
+ - [Examples](/docs/Examples/) — Real-world usage patterns
139
+ - [CLI Reference](/docs/CLI-Reference/) — Command-line usage
140
+
141
+ ---
142
+
143
+ *Last updated: v17.6.0*
@@ -0,0 +1,294 @@
1
+ # Persona System Tools
2
+
3
+ **Test your site through the eyes of real user types, not imaginary "average users."**
4
+
5
+ These 15 tools let you create, customize, and inspect cognitive personas backed by 25 research-validated traits and Schwartz's universal values framework. Every persona behaves differently because they *think* differently.
6
+
7
+ ---
8
+
9
+ ## When to Use These Tools
10
+
11
+ - **You're building for a specific audience** and want to validate they can actually use your product
12
+ - **You need to test accessibility** with realistic disability simulations, not just WCAG checkers
13
+ - **You want consistent test personas** across your team with documented cognitive profiles
14
+ - **You're customizing personas** for your specific user base
15
+
16
+ ---
17
+
18
+ ## Tools
19
+
20
+ ### `list_cognitive_personas`
21
+
22
+ **What it does**: Returns all available personas with their complete cognitive trait profiles.
23
+
24
+ **Why you'd use it**: See what personas exist and understand their characteristics before selecting one.
25
+
26
+ | Parameter | Type | Required | Description |
27
+ |-----------|------|----------|-------------|
28
+ | `category` | string | No | Filter by category: `general`, `accessibility`, `marketing`, `all` |
29
+ | `detailed` | boolean | No | Include full trait values. Default: false |
30
+
31
+ **Example**:
32
+ ```json
33
+ {
34
+ "category": "accessibility",
35
+ "detailed": true
36
+ }
37
+ ```
38
+
39
+ **Returns**: List of personas with names, descriptions, trait summaries, and (if detailed) all 25 trait values.
40
+
41
+ ---
42
+
43
+ ### `persona_create_start`
44
+
45
+ **What it does**: Begins the persona creation flow. Choose between questionnaire mode (answer questions to generate traits) or description mode (describe the persona in natural language).
46
+
47
+ **Why you'd use it**: Start building a custom persona tailored to your specific user base.
48
+
49
+ | Parameter | Type | Required | Description |
50
+ |-----------|------|----------|-------------|
51
+ | `mode` | string | Yes | `questionnaire` or `description` |
52
+ | `name` | string | Yes | Name for the new persona |
53
+
54
+ **Example**:
55
+ ```json
56
+ {
57
+ "mode": "description",
58
+ "name": "startup-cto"
59
+ }
60
+ ```
61
+
62
+ ---
63
+
64
+ ### `persona_create_from_description`
65
+
66
+ **What it does**: Generate a persona from a natural language description. Returns a trait reference matrix for review before finalizing.
67
+
68
+ **Why you'd use it**: Quickly create a persona by describing who they are, rather than answering individual trait questions.
69
+
70
+ | Parameter | Type | Required | Description |
71
+ |-----------|------|----------|-------------|
72
+ | `sessionId` | string | Yes | Session ID from `persona_create_start` |
73
+ | `description` | string | Yes | Natural language description of the persona |
74
+
75
+ **Example**:
76
+ ```json
77
+ {
78
+ "sessionId": "create_abc123",
79
+ "description": "A senior developer at a Fortune 500 company. Highly technical, impatient with marketing fluff, wants to see code examples immediately. Uses keyboard shortcuts for everything. Skeptical of new tools until proven."
80
+ }
81
+ ```
82
+
83
+ **Returns**: Inferred trait values with confidence scores and suggested adjustments.
84
+
85
+ ---
86
+
87
+ ### `persona_create_submit_traits`
88
+
89
+ **What it does**: Finalize a description-based persona by confirming or adjusting the inferred traits.
90
+
91
+ **Why you'd use it**: Review the AI-generated traits and make corrections before saving.
92
+
93
+ | Parameter | Type | Required | Description |
94
+ |-----------|------|----------|-------------|
95
+ | `sessionId` | string | Yes | Session ID |
96
+ | `traits` | object | Yes | Final trait values (adjusted if needed) |
97
+ | `save` | boolean | No | Save persona for future use. Default: true |
98
+
99
+ ---
100
+
101
+ ### `persona_create_questionnaire_start`
102
+
103
+ **What it does**: Begin the questionnaire-based persona creation. Returns the first question.
104
+
105
+ **Why you'd use it**: Build a persona through guided questions when you want precise control over trait values.
106
+
107
+ | Parameter | Type | Required | Description |
108
+ |-----------|------|----------|-------------|
109
+ | `sessionId` | string | Yes | Session ID from `persona_create_start` |
110
+ | `comprehensive` | boolean | No | Use full 25-trait questionnaire vs 8-core. Default: false |
111
+
112
+ ---
113
+
114
+ ### `persona_create_questionnaire_answer`
115
+
116
+ **What it does**: Submit an answer to the current questionnaire question and receive the next one.
117
+
118
+ **Why you'd use it**: Progress through the questionnaire one question at a time.
119
+
120
+ | Parameter | Type | Required | Description |
121
+ |-----------|------|----------|-------------|
122
+ | `sessionId` | string | Yes | Session ID |
123
+ | `answer` | string/number | Yes | Answer to the current question |
124
+
125
+ ---
126
+
127
+ ### `persona_create_cancel`
128
+
129
+ **What it does**: Cancel the current persona creation session.
130
+
131
+ **Why you'd use it**: Abandon a persona creation that's no longer needed.
132
+
133
+ | Parameter | Type | Required | Description |
134
+ |-----------|------|----------|-------------|
135
+ | `sessionId` | string | Yes | Session ID to cancel |
136
+
137
+ ---
138
+
139
+ ### `persona_questionnaire_get`
140
+
141
+ **What it does**: Retrieve the full persona questionnaire for external use — the questions, scales, and trait mappings.
142
+
143
+ **Why you'd use it**: Build your own persona creation UI or review the research-backed questions.
144
+
145
+ | Parameter | Type | Required | Description |
146
+ |-----------|------|----------|-------------|
147
+ | `version` | string | No | `core` (8 questions) or `comprehensive` (25 questions). Default: `core` |
148
+
149
+ ---
150
+
151
+ ### `persona_questionnaire_build`
152
+
153
+ **What it does**: Build a persona directly from questionnaire answers with category-aware safeguards.
154
+
155
+ **Why you'd use it**: Create a persona from pre-collected answers (e.g., from a user survey).
156
+
157
+ | Parameter | Type | Required | Description |
158
+ |-----------|------|----------|-------------|
159
+ | `name` | string | Yes | Persona name |
160
+ | `answers` | object | Yes | Map of trait names to values (0.0-1.0) |
161
+ | `category` | string | No | Persona category for value derivation rules |
162
+
163
+ ---
164
+
165
+ ### `persona_traits_list`
166
+
167
+ **What it does**: List all 25 cognitive traits with descriptions, research basis, and behavioral implications.
168
+
169
+ **Why you'd use it**: Understand what each trait measures before assigning values.
170
+
171
+ | Parameter | Type | Required | Description |
172
+ |-----------|------|----------|-------------|
173
+ | `tier` | number | No | Filter by tier (1-6) |
174
+
175
+ **Example**:
176
+ ```json
177
+ {
178
+ "tier": 1
179
+ }
180
+ ```
181
+
182
+ Returns Tier 1 core traits: Patience, Risk Tolerance, Comprehension, Persistence, Curiosity, Working Memory, Reading Tendency.
183
+
184
+ ---
185
+
186
+ ### `persona_trait_lookup`
187
+
188
+ **What it does**: Get detailed behavioral descriptions for specific trait values.
189
+
190
+ **Why you'd use it**: Understand what a patience value of 0.3 actually means in practice.
191
+
192
+ | Parameter | Type | Required | Description |
193
+ |-----------|------|----------|-------------|
194
+ | `trait` | string | Yes | Trait name (e.g., `patience`, `riskTolerance`) |
195
+ | `value` | number | Yes | Value to look up (0.0-1.0) |
196
+
197
+ **Example**:
198
+ ```json
199
+ {
200
+ "trait": "patience",
201
+ "value": 0.3
202
+ }
203
+ ```
204
+
205
+ **Returns**: Behavioral description, abandonment thresholds, typical actions at this level.
206
+
207
+ ---
208
+
209
+ ### `persona_values_lookup`
210
+
211
+ **What it does**: Retrieve the values profile for a persona — Schwartz universal values, SDT psychological needs, and Maslow hierarchy level.
212
+
213
+ **Why you'd use it**: Understand what motivates a persona and which influence patterns will resonate with them.
214
+
215
+ | Parameter | Type | Required | Description |
216
+ |-----------|------|----------|-------------|
217
+ | `persona` | string | Yes | Persona ID |
218
+
219
+ **Example**:
220
+ ```json
221
+ {
222
+ "persona": "enterprise-buyer"
223
+ }
224
+ ```
225
+
226
+ **Returns**: Schwartz value rankings (security, achievement, benevolence, etc.), primary psychological needs, Maslow level.
227
+
228
+ ---
229
+
230
+ ### `persona_category_guidance`
231
+
232
+ **What it does**: Get guidance for handling value derivation in disability-specific personas.
233
+
234
+ **Why you'd use it**: When creating accessibility personas, understand how to assign values appropriately without stereotyping.
235
+
236
+ | Parameter | Type | Required | Description |
237
+ |-----------|------|----------|-------------|
238
+ | `category` | string | Yes | Category: `cognitive`, `physical`, `sensory`, `emotional` |
239
+
240
+ **Returns**: Value derivation strategy, research basis, warnings about common mistakes.
241
+
242
+ ---
243
+
244
+ ### `list_influence_patterns`
245
+
246
+ **What it does**: List all research-backed influence and persuasion patterns with their effectiveness by persona type.
247
+
248
+ **Why you'd use it**: Understand which psychological triggers work on which audiences.
249
+
250
+ | Parameter | Type | Required | Description |
251
+ |-----------|------|----------|-------------|
252
+ | `persona` | string | No | Filter to patterns effective for this persona |
253
+
254
+ **Returns**: Patterns like `scarcity`, `social_proof`, `authority`, `reciprocity` with effectiveness ratings and example implementations.
255
+
256
+ ---
257
+
258
+ ## The 25 Cognitive Traits
259
+
260
+ Personas are built from 25 research-validated traits organized in 6 tiers:
261
+
262
+ | Tier | Traits | What They Govern |
263
+ |------|--------|------------------|
264
+ | **1: Core** | Patience, Risk Tolerance, Comprehension, Persistence, Curiosity, Working Memory, Reading Tendency | Basic interaction patterns |
265
+ | **2: Emotional** | Resilience, Self-Efficacy, Trust Calibration, Interrupt Recovery | Response to friction and failure |
266
+ | **3: Decision** | Satisficing, Information Foraging, Anchoring Bias, Time Horizon, Attribution Style | How choices are made |
267
+ | **4: Planning** | Metacognitive Planning, Procedural Fluency, Transfer Learning | Approach to complex tasks |
268
+ | **5: Perception** | Change Blindness, Mental Model Rigidity | How UI changes are noticed/understood |
269
+ | **6: Social** | Authority Sensitivity, Emotional Contagion, FOMO, Social Proof Sensitivity | Response to social cues |
270
+
271
+ See [Trait Index](/docs/Trait-Index/) for detailed documentation of each trait.
272
+
273
+ ---
274
+
275
+ ## Built-in Personas
276
+
277
+ | Category | Personas |
278
+ |----------|----------|
279
+ | **General** | power-user, first-timer, mobile-user, impatient-user |
280
+ | **Accessibility** | elderly-user, screen-reader-user, motor-tremor, low-vision, cognitive-adhd |
281
+ | **Marketing** | enterprise-buyer, startup-founder, procurement-manager, technical-evaluator, impulse-shopper, price-researcher, loyal-customer, skeptical-first-timer |
282
+
283
+ ---
284
+
285
+ ## Related Documentation
286
+
287
+ - [Persona Index](/docs/Persona-Index/) — Complete persona profiles
288
+ - [Persona Questionnaire](/docs/Persona-Questionnaire/) — Creating custom personas
289
+ - [Trait Index](/docs/Trait-Index/) — Deep dives on each trait
290
+ - [Values Framework](/docs/Values-Framework/) — Schwartz values and motivation
291
+
292
+ ---
293
+
294
+ *Last updated: v17.6.0*