Search Pexels stock
search_stock_mediaSearches the Pexels stock library (photos or videos) with the user's connected API key. Returns items with id, dimensions, duration (videos), author, thumbnail url, available video qualities, and a downloaded flag telling whether the asset is already in the project's media pool. If no key is connected it errors with PERMISSION_REQUIRED, whose message says where the user connects one (Library → Generators → Stock Library). Results are subject to the Pexels license; keep the author attribution when asked about provenance.
Results match the uploader's keywords, not the picture — a search for 'earth from space' also returns the Moon and artists' renders; thumbnail shows the actual subject. See read_skill {topic:'verify'}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | photos | videos | |
| page | No | 1-based page, 40 items per page. | |
| size | No | Optional: large | medium | small | |
| color | No | Optional, photos only: a Pexels color name. | |
| query | No | Search phrase; empty = curated/popular feed. | |
| token | Yes | The session token `connect` returned. Pass it on every call — it says which browser to drive. | |
| projectId | Yes | Project id from get_projects. | |
| orientation | No | Optional: landscape | portrait | square |