specs-keyboard

Implement AR keyboard text input in Specs using the TextInputSystem API.

16|2|Updated Apr 13, 2026
One-click install
npx skills add https://github.com/lens-studio-devs/ls-extensions --skill specs-keyboard-lens-studio-devs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: specs-keyboard
Source: https://github.com/lens-studio-devs/ls-extensions/tree/main/plugins/ls-clad/skills/specs-keyboard
Command: npx skills add https://github.com/lens-studio-devs/ls-extensions --skill specs-keyboard-lens-studio-devs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Adding text input to AR experiences on Specs requires correctly configuring the TextInputSystem keyboard, its callbacks, and keyboard types, which is easy to get wrong without a working reference. ## Core Features & Use Cases - Keyboard Configuration: Set up KeyboardOptions with keyboard types (Text, Url, Num, Phone, Password, Pin), return key types, and text preview. - Callback Handling: Wire onTextChanged, onReturnKeyPressed, onKeyboardStateChanged, and onError callbacks before calling requestKeyboard(). - UIKit Integration: Use the SpectaclesUIKit TextInputField component for fully styled input boxes that manage the keyboard automatically. - Use Case: Build a search box or message entry field in a Lens Studio lens where typed text is captured on every keystroke and submitted to an AI service or sync store when the user presses return. ## Quick Start Show an AR keyboard in my Specs lens that captures typed text and handles the submit action when the user presses the return key.

Frequently Asked Questions about specs-keyboard

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I show an AR keyboard in Lens Studio for Specs?

Require LensStudio:TextInputModule, create a TextInputSystem.KeyboardOptions object, set your callbacks on it, then call global.textInputSystem.requestKeyboard(options). Call dismissKeyboard() to close it.

What keyboard types does the Specs TextInputSystem support?

The TextInputSystem supports Text, Url, Num, Phone, Password, and Pin keyboard types. Password and Pin are available on wearable devices only, while the others work for general text, URLs, numbers, and phone entry.

Why doesn't the AR keyboard appear in Lens Studio Preview?

The AR keyboard does not appear in Lens Studio Preview when using SPECS 27 simulation. Switch to simulation mode without SPECS 27 render to test keyboard behavior.

How do I use TextInputField from SpectaclesUIKit for text input?

Import TextInputField from SpectaclesUIKit and subscribe to its onTextChanged and onSubmit events. The UIKit TextInputField handles opening and closing the keyboard automatically, so no manual requestKeyboard call is needed.

Where do I set keyboard callbacks like onTextChanged?

Callbacks are set on the KeyboardOptions object before calling requestKeyboard(), not on global.textInputSystem. Available callbacks include onTextChanged, onReturnKeyPressed, onKeyboardStateChanged, and onError.