search_photos
Find photos in the Local News Matters media library by matching search terms against title, caption, and alt text. Filter results by article and retrieve paginated summaries with source URLs.
Instructions
Search photos/images in the Local News Matters media library.
Args: query: Search terms matched against title, caption and alt text. page: 1-based page number. per_page: Results per page (1-100). article_id: Restrict to photos attached to a specific article. response_format: "json" (default) for raw data, or "markdown" for readable text.
Returns results (photo summaries incl. source_url) plus total, total_pages.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_photos"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| query | No | ||
| per_page | No | ||
| article_id | No | ||
| response_format | No | json |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |