phone_type_text — промпт для Claude Code: ввод текста
Промпт phone_type_text для Claude Code вводит целый текст в поле на экране телефона за один вызов. Можно указать поле по метке или передать его координаты.
Apache-2.0 ★ 9 488 обновлён 2026-11-16
.claude/commands/phone_type_text.mdЧто делает phone_type_text
Промпт вводит заданный текст в поле, которое сейчас в фокусе, либо находит поле по указанной метке или координатам. Для выбора поля можно передать ref и snapshotId; метка, доступное имя или placeholder должны однозначно соответствовать одному полю. Если сопоставление неоднозначно, система сообщает о совпадениях или просит осмотреть экран.
После ввода pressEnter отправляет текст. Результат проверяет содержимое поля и сообщает, совпало ли оно с заданным; если текст не вставился, выполняется одна повторная попытка. Для экранов, которые система не может прочитать по списку элементов, указывают точку поля или ссылку @vN из phone_find_visually. В парольных полях прочитанное значение скрыто.
Какие задачи решает
- ввести длинный текст в поле за один вызов
- найти поле по метке или доступному имени
- вставить текст в поле на нечитаемом экране телефона
- проверить, совпал ли ввод с заданным текстом
Примеры запросов агенту
- Введи «Готово, отправлю файл сегодня» в поле сообщения и отправь текст.
- Вставь текст «Проверка пройдена» в поле с меткой «Комментарий».
- Найди поле ввода на экране и напечатай «Новый адрес».
Как установить phone_type_text
Вручную: положить файлы
.claude/commands/phone_type_text.mdКак использовать
Вставьте текст в начало диалога или в инструкции проекта
Вопросы о phone_type_text
Как установить phone_type_text в Claude Code?
Добавь файл команды phone_type_text.md в каталог .claude/commands/.
Что делает phone_type_text?
Он вводит текст в выбранное или сфокусированное поле, затем проверяет, что появилось на экране. При необходимости можно отправить текст клавишей Enter.
Как phone_type_text выбирает поле на нечитаемом экране?
Укажи координаты поля или ссылку @vN из phone_find_visually. Промпт вводит текст в найденной точке и проверяет результат.
Исходный текст
phone_type_text.md · Apache-2.0
Type the whole text into the focused field in one call; tap the field first, pass ref+snapshotId to target it, or name the field in element (its label, accessible name or placeholder as listed; it must match exactly one input field on the screen now, otherwise the result says which ones match or asks you to observe; a partial match is reported as resolvedFrom and matched). pressEnter submits after the text was entered. The result's effect reads the field back: readback is what the field shows now (hidden for password fields) and readbackMatches whether it is the intended text; text that did not land is retried once automatically. effect.kind is done, small_change, no_effect or place_changed as for other actions. On a screen the element list cannot read (an app that draws its own screen), give the input box's point instead of a ref: x+y (a visibleText center) or the @vN ref from phone_find_visually. The point is tapped and the text pasted into the box there, keyboard showing or not, then checked against the screen text: verification match means it went in; point_not_typed means that point did not take the text, so find the box again instead of repeating it. Without a ref or point, the text goes into whichever box holds focus the same way; no_focus means give the box's point. Without its point, name the box in element in a few words (e.g. the message box at the bottom): when the element list cannot read this screen and has no matching field, the box is found by sight (with phone_find_visually's checks) and typed into at its point the same way; foundBySight and seen say what was used.
© wangzan101 · Apache-2.0 · wangzan101/Mika