search_pexels

Fetch a real-world stock photo from Pexels and save it into the project tree. Used for hero images, illustrations, and team photos.

Inputs

json
{
  "query": "float tank spa cream walls",
  "filename": "hero"   // optional; auto-numbered if omitted
}

Filename, if given, must match /^[a-zA-Z0-9_-]+$/ (no spaces, no extension). The agent picks a descriptive English query and a one-word filename per section.

Where the file lands

The path depends on the scaffold:

ScaffoldPathReference in JSX
Vite + Reactsrc/assets/<name>.jpgimport hero from '@/assets/hero.jpg'
Next.js 15public/<name>.jpg<img src="/hero.jpg" />

Usage in code

tsxsrc/components/Hero.tsx
import hero from '@/assets/hero.jpg';

export function Hero() {
  return (
    <section className="relative h-[80dvh]">
      <img
        src={hero}
        alt="Float tank with cream walls"
        className="absolute inset-0 h-full w-full object-cover"
      />
    </section>
  );
}

Was this page helpful?

© 2026 Mythos Labs · Source on GitHub