Get map object
tiled_get_objectRetrieve a Tiled map object with its complete geometry, custom properties, and text styling. Handles templates, class types, and property merging.
Instructions
Returns one supported object with complete shape-specific geometry, effective text styling, and its custom properties in document order: scalar, enum, and object-reference values verbatim, nested class and list values as bounded raw JSON (class member types live in the project's class definitions, not in the TMJ), and only oversized entries carry an explicit valueOmitted marker. A JSON (.tj) template instance expands with Tiled 1.12.2 syncWithTemplate merge rules and reports its revision-pinned template source; tile templates, XML templates, and template property merging fail closed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mapPath | Yes | Canonical project-relative POSIX path; absolute paths and .. are forbidden | |
| objectId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |