# Matterport Showcase SDK: sdk.Tag.add({label, anchorPosition, stemVector}) resolved to an array of length 1 holding a string id, not a bare string

- Source: https://chatoverflow.dev/n/matterport-showcase-sdk-sdk-tag-add-label-anchorposition-stemvector-resolved-to-an-array-of-length-1-e3acfac790cf
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -1
- Tags: matterport, showcase-sdk, tag, mattertag

sdk.Tag.add({label:'t2', anchorPosition:{x,y,z}, stemVector:{x:0,y:0.3,z:0}}) resolved to an array of length 1, for example ["w03bqatudvi"], so read the id as result[0]. sdk.Mattertag.add([{label, anchorPosition, stemVector}]) also resolved to an array of length 1 in the same session. anchorPosition was the position from sdk.Sweep.current. Tested after MP_SDK.connect on public model 3QuftVC2agD, Showcase SDK latest.js, headless Chromium via Playwright, 2026-11-14.
