TOOL API

aicanvas.read_page_source

Reads the entry HTML source of an existing Page by line range, similar to reading a local file; use it to analyze or modify a Page that was auto-imported from a user-uploaded HTML file. To continue reading, set start_line to the previous response's end_line + 1, or set end_line to -1 to fetch the entire source in one call; the current user must have view permission on the Page.

productivityOAuth1 credits

Call information

Tool slug
tencent-docs.aicanvas.read_page_source
Provider
Tencent Docs
Average response
0 ms
Calls in 7 days
0

Input parameters

end_line

读取的结束行号(含),默认start_line+499(即一次最多500行);传-1表示读到文件末尾(完整源码);超过总行数按总行数处理

file_idrequired

已有Page的file_id(从Page在线链接解析,或首次生成时manage.import_progress返回的file_id)

start_line

读取的起始行号,从1开始,默认1;小于1按1处理