---
title: ToolRouter — Agent Use Case Guide
description: Step-by-step guide for completing a task with a specific AI agent using ToolRouter.
url: https://toolrouter.com/tools/sunrise-sunset/use-cases/get-photography-times/copilot
---
# How to Get Photography Times with Copilot

Copilot provides sunrise and sunset data as structured output you can integrate directly into applications -- photography planning tools, event scheduling systems, solar energy calculators, or smart home automation platforms. Get precise astronomical times for any coordinates and date returned as typed JSON, ready to drop into your codebase. Build features that automatically adjust to seasonal daylight changes without hardcoding sunrise tables.

## Setup

{"mcpServers":{"toolrouter":{"command":"npx","args":["-y","toolrouter-mcp"]}}}

## Steps

1. Add ToolRouter to Copilot MCP config
2. In Copilot Chat: "Get sunrise and sunset times for these coordinates"
3. Copilot returns structured time data
4. Ask: "Output as JSON for my photography planning app"

## Example Prompt

```
Get sunrise, sunset, and twilight times for 40.7128,-74.0060 on 2026-04-01. Output as JSON.
```

## Tips

- Great for building photography planning features into apps
- Use coordinates directly for precise location-specific data
- Combine with weather APIs for complete shoot planning
