Type Text into Input
gpm_browser_typeFills input and textarea fields by selector, optionally clearing old text, typing with human-like delays, and pressing Enter after entry.
Instructions
Điền văn bản vào ô input/textarea. Nếu đặt delay_ms > 0 sẽ gõ từng phím tự nhiên giống người thật.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"selector": "<selector>",
"text": "<text>"
},
"name": "gpm_browser_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Nội dung cần nhập | |
| clear | No | Xoá nội dung cũ trước khi nhập (mặc định true) | |
| delay_ms | No | Độ trễ giữa các phím tính bằng ms (0 = fill ngay, >0 = gõ từng ký tự) | |
| selector | Yes | CSS hoặc Playwright selector của ô nhập | |
| profile_id | No | ID của profile GPM đang kết nối CDP (có thể bỏ trống nếu chỉ có 1 profile đang kết nối) | |
| timeout_ms | No | Timeout mili-giây (mặc định 15000) | |
| press_enter | No | Nhấn Enter sau khi nhập xong |