Add WebSite schema with SearchAction — Windsurf
Without WebSite + SearchAction schema, Google cannot show a search box under your brand result — missing a big SERP real-estate opportunity.
Fixing this in Windsurf
Codeium agentic AI IDE with Cascade
Windsurf Cascade can walk the entire project and apply multi-file edits in one pass. Paste the prompt below into your Windsurf chat and the fix rolls out across the project in one pass.
Using a different tool? Pick your stack:
The prompt for Windsurf
Copy and paste this into your Windsurf chat exactly as-is.
Using Windsurf Cascade, apply these edits across the project in one pass: Add WebSite schema with SearchAction 1. Add WebSite schema with a SearchAction so Google can show a sitelinks searchbox.
Why this matters
When someone searches your brand name, Google can show a search box directly under the result — searching that box goes to your internal search page. Only eligible sites get this (usually larger brands), and WebSite schema with SearchAction is the prerequisite.
You need actual internal search for this to work. If you do not have search, skip this schema.
How to use this prompt in Windsurf
- 1. Open your Windsurf project.
- 2. Copy the prompt above with the copy button.
- 3. Paste into the Windsurf chat and send.
- 4. Review the diff, accept the changes, redeploy.
- 5. Verify the fix using the checklist below.
Common mistakes to avoid
- error_outlinePointing SearchAction to a broken search URL.
- error_outlineAdding WebSite schema without Organization — pair them.
- error_outlineCopying the example schema without replacing the search URL template.
How to verify the fix worked
- check_circleRich Results Test recognizes the schema.
- check_circleAfter a few weeks, branded search may show sitelinks search box.
Frequently asked questions
How long until the search box appears?expand_more
Do I need WebSite on every page?expand_more
Want all 34 prompts tailored to your Windsurf site?
Pantra scans your site in 10 seconds, detects the stack, and generates the exact prompts that apply — only the ones you actually need.
Scan my siteRelated Windsurf prompts
Add Organization schema — Windsurf
Prompt to add Organization JSON-LD with logo, sameAs links, and contact info to your homepage.
AI Search / GEOAdd JSON-LD structured data — Windsurf
Prompt to add Organization, Article, and FAQ JSON-LD to <head> — tells Google and AI crawlers exactly what your page represents.
Structured DataAdd BreadcrumbList schema — Windsurf
Prompt to add BreadcrumbList JSON-LD so Google shows breadcrumbs instead of raw URLs in search results.
Structured DataAdd FAQPage schema — Windsurf
Prompt to add FAQPage JSON-LD and enable expandable FAQ rich results in Google, plus AI citation signals.