# Ray

> Generate code screenshots via ray.tinte.dev API. Use when user asks for code screenshots, code images, code snippets as images, or says "ray". Calls POST https://ray.tinte.dev/api/v1/screenshot and saves the PNG result.

- **Type:** Skill
- **Install:** `agentstack add skill-railly-tinte-ray`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [Railly](https://agentstack.voostack.com/s/railly)
- **Installs:** 0
- **Category:** [Developer Tools](https://agentstack.voostack.com/c/developer-tools)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [Railly](https://github.com/Railly)
- **Source:** https://github.com/Railly/tinte/tree/main/skills/ray
- **Website:** https://tinte.dev

## Install

```sh
agentstack add skill-railly-tinte-ray
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Ray - Code Screenshots

Generate code screenshots by calling the ray.tinte.dev API.

## API

```
POST https://ray.tinte.dev/api/v1/screenshot
Content-Type: application/json
```

## Parameters

| Param | Type | Default | Notes |
|-------|------|---------|-------|
| `code` | string | *required* | 1-10,000 chars |
| `language` | string | `"typescript"` | typescript, javascript, python, rust, go, java, cpp, c, html, css, json, bash, sql, markdown, toml |
| `theme` | string or TinteBlock | `"one-hunter"` | Slug from tinte.dev or inline object |
| `mode` | `"dark"` \| `"light"` | `"dark"` | |
| `padding` | number | `32` | 0-256 |
| `fontSize` | number | `14` | 8-32 |
| `lineNumbers` | boolean | `true` | |
| `title` | string | `""` | Window chrome title (max 100) |
| `background` | string | `"midnight"` | One of: midnight, sunset, ocean, forest, ember, steel, aurora, none. Hex colors are not accepted. |
| `format` | `"png"` | `"png"` | PNG only |
| `scale` | number | `2` | 1-4 (retina) |

## Notes

- `background: "none"` returns a transparent RGBA PNG. Useful when you want to composite the screenshot onto a custom background.
- Returned PNGs always include some transparent margin around the window for the drop shadow, even with `padding: 0`. If you're compositing the result, trim that halo first (e.g. `magick input.png -trim +repage output.png`).
- Long snippets can take 30-60+ seconds to render. Use a per-request timeout when calling from scripts or agents.

## Workflow

1. Identify the code to screenshot (from file, clipboard, or user input)
2. Detect language from file extension or content
3. Call the API via curl
4. Save the PNG and open it

## Example

```bash
curl -s -X POST https://ray.tinte.dev/api/v1/screenshot \
  -H 'Content-Type: application/json' \
  -d '{
    "code": "const greeting = \"Hello, world!\";",
    "language": "typescript",
    "theme": "one-hunter",
    "title": "hello.ts"
  }' -o screenshot.png && open screenshot.png
```

## Language Detection

| Extension | Language |
|-----------|----------|
| .ts, .tsx | typescript |
| .js, .jsx | javascript |
| .py | python |
| .rs | rust |
| .go | go |
| .java | java |
| .cpp, .cc, .cxx | cpp |
| .c, .h | c |
| .html | html |
| .css | css |
| .json | json |
| .sh, .bash | bash |
| .sql | sql |
| .md | markdown |
| .toml | toml |

## Themes

- Default: `"one-hunter"` (Vercel-inspired dark theme)
- Any slug from tinte.dev: `"github-dark"`, `"dracula"`, `"catppuccin"`, etc.
- Inline TinteBlock object with 13 semantic colors (bg, tx, tx_2, tx_3, ui, ui_2, ui_3, ac_1, ac_2, ac_3, pr, sc, nt)

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [Railly](https://github.com/Railly)
- **Source:** [Railly/tinte](https://github.com/Railly/tinte)
- **License:** MIT
- **Homepage:** https://tinte.dev

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** yes
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-railly-tinte-ray
- Seller: https://agentstack.voostack.com/s/railly
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
