← Mục lục tài liệu

get_full_code

key: developer.get_full_code nhóm: DeveloperAction hàm Client A13: get_full_code

Chức năng

Gom HTML của trang chính + tất cả iframe (tùy chọn kèm bản pierce shadow DOM qua CDP) thành một khối. Nặng nhất nhưng đầy đủ nhất — node tự nới timeout thêm 15s. Dùng khi không rõ phần tử nằm ở frame nào.

Tham số (4)

Tên trên UIpayloadNameKiểuMặc địnhMô tả
Timeout (sec) timeout_sec string 25 Chức năng: Maximum total time to collect main frame and iframe HTML. Increase this for large pages with many iframes. Ví dụ 1: 5. Giải nghĩa: Thao tác nhanh trên trang nội bộ. Ví dụ 2: 30. Giải nghĩa: Mức cân bằng cho phần lớn trang web công cộng. Ví dụ 3: 120. Giải nghĩa: Trang nặng hoặc thao tác phải chờ xử lý phía máy chủ.
Frame Timeout (sec) frame_timeout_sec string 2 Chức năng: Maximum time spent reading each frame. Slow or blocked iframes are returned as IFRAME:ERROR instead of blocking the whole action. Ví dụ 1: 2. Giải nghĩa: Mặc định, bỏ nhanh những iframe quảng cáo chậm. Ví dụ 2: 5. Giải nghĩa: Kiên nhẫn hơn với iframe nội dung quan trọng. Ví dụ 3: 0.5. Giải nghĩa: Rất gắt — chỉ lấy iframe phản hồi tức thì.
Max Chars max_chars string 0 Chức năng: 0 means no truncation. Set a limit when the page HTML is too large for MQTT/n8n response handling. Ví dụ 1: 0. Giải nghĩa: Lấy trọn vẹn, không cắt bớt. Ví dụ 2: 200000. Giải nghĩa: Cắt ở 200 nghìn ký tự để bản tin không quá nặng. Ví dụ 3: 50000. Giải nghĩa: Chỉ lấy phần đầu để xem nhanh cấu trúc trang.
Include Pierced DOM include_pierced_dom boolean true Chức năng: Append a CDP DOM.getDocument(pierce=true) section so nodes visible in DevTools inside open shadow DOM/iframe trees can appear in Get Full Code. Ví dụ 1: true. Giải nghĩa: Thấy được cả phần tử trong shadow DOM. Ví dụ 2: false. Giải nghĩa: Chỉ lấy HTML thường — nhẹ và nhanh hơn. Ví dụ 3: ={{$json.flag}}. Giải nghĩa: Chọn theo dữ liệu điều khiển.

🚩 = bắt buộc. Ô rỗng của tham số tùy chọn sẽ bị loại khỏi payload.inputs — Client tự áp default.

Payload MQTT gửi đi

{
  "version": "great-lotus-pyauto-v1",
  "action": {
    "key": "developer.get_full_code",
    "group": "DeveloperAction",
    "function": "get_full_code"
  },
  "inputs": {
    "timeout_sec": {
      "type": "string",
      "value": 25
    },
    "frame_timeout_sec": {
      "type": "string",
      "value": 2
    },
    "max_chars": {
      "type": "string",
      "value": 0
    },
    "include_pierced_dom": {
      "type": "boolean",
      "value": true
    }
  },
  "meta": {
    "requestId": "<16 hex>",
    "requestTopic": "WP2_PC176",
    "responseTopic": "RES_WP2_PC176",
    "waitForResponse": true,
    "responseTimeoutSec": 60
  }
}

Publish lên topic bạn nhập ở ô Topic; nếu bật Wait For Response, node chờ Client trả lời trên RES_<topic> với đúng meta.requestId. return: "NG" ⇒ node ném lỗi.

Sinh tự động bởi tools/gen_doc_html.js từ ACTION_SPECS (package n8n-nodes-c12_pyautogui_web@0.1.34) · 2026-07-22 · Đừng sửa tay file này — sửa _notes/ hoặc source rồi chạy lại npm run doc:build.