get_page_text
Retrieve visible text from a web page body for validation or extraction. Truncates text to a specified character limit.
Instructions
Retrieve visible text from the page body.
Purpose
Provides page text for reasoning, validation, or extraction.
Text is truncated to max_chars characters; check the returned
truncated flag to know whether content was cut.
Parameters
session_id : str Active browser session identifier. max_chars : int Maximum characters to return (default: 5000).
Returns
dict { "session_id": str, "page_text": str (Page text extract), truncated": bool (True, if the page_text is truncated. Else, False), "total_chars": int, "status": str, "message": str }
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": {
"session_id": "<session_id>"
},
"name": "get_page_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_chars | No | ||
| session_id | Yes |