WordPress / API Reference
elementor_widget_table_of_contents
Elementor tool. Add a Table of Contents widget that auto-generates from page headings (Elementor Pro)
This is a read-only tool: it returns widget table of contents for your WordPress account. It changes nothing.
Ask Claude
You do not call this tool yourself. Ask for the outcome and the client picks the tool:
Widget table of contents in my WordPress account for [page id].
It takes 1 required and 12 optional parameters.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
page_id | integer | Yes | Page Id |
page_type | string | No | Page Type |
section_index | integer | No | Section Index |
column_index | integer | No | Column Index |
title | string | No | Title |
html_tag | string | No | Html Tag |
include_headings | array | No | Include Headings |
exclude_headings | array | No | Exclude Headings |
hierarchical | boolean | No | Hierarchical |
minimized_default | boolean | No | Minimized Default |
min_screen | string | No | Min Screen |
marker_type | string | No | Marker Type |
css_class | string | No | Css Class |
Related WordPress tools
elementor_widget_accordionelementor_widget_alertelementor_widget_audioelementor_widget_blockquoteelementor_widget_breadcrumbselementor_widget_button
Start free — 30 tool calls a month
No card required. Connect Google Ads, Meta Ads, GA4 or Search Console and ask Claude for the outcome — it picks the tool.