---
id: tiled-read_tsx
name: Tiled.read_tsx
category: tiled
kind: namespace-method
tokens: Tiled.read_tsx
sig: Tiled.read_tsx(path: string) -> value
tip: Read a tileset file into a value object.
order: 2
ns: Tiled
member: read_tsx
---
Reads a standalone Tiled tileset file at path (TSX or TSJ) and returns a tileset Value object: name, tilewidth/tileheight, spacing, margin, columns, tilecount, the image and its size, and a tiles list of per-tile metadata (animation frames, collision shapes, properties). This is what a map's external {firstgid, source} tileset reference resolves to.