get_session_state
Retrieve session state for debugging, with configurable sections and filters like DOM, UI tree, and application state.
Instructions
Retrieve aggregated session state for debugging and visibility.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | auto | |
| sections | No | Specific data blocks to include (e.g., summary, page_source, variables, application_state, ui_tree). ui_tree (desktop/PlatynUI sessions only): accessibility-tree snapshot. Lists applications; pass application names via elements_of_interest to expand their subtrees (bounded depth, ADR-025). | |
| session_id | Yes | Active session identifier to inspect. | |
| state_type | No | Type of application state to fetch when requesting application_state (dom|api|database|all). | all |
| since_version | No | ||
| dom_chunk_size | No | Maximum size of each DOM chunk when streaming is enabled (minimum 1024 bytes). | |
| include_dom_stream | No | Chunk large page_source payloads into page_source_stream entries for easier transport. | |
| include_reduced_dom | No | Whether to include lightweight semantic DOM (ARIA snapshots) for quick inspection. | |
| elements_of_interest | No | Targeted element identifiers passed to application state collectors. | |
| page_source_filtered | No | When True, returns sanitized/filtered DOM text instead of the full source. | |
| page_source_filtering_level | No | Filtering aggressiveness for DOM output (standard|aggressive). | standard |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||