API Reference

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

ParameterTypeRequiredDescription
page_idintegerYesPage Id
page_typestringNoPage Type
section_indexintegerNoSection Index
column_indexintegerNoColumn Index
titlestringNoTitle
html_tagstringNoHtml Tag
include_headingsarrayNoInclude Headings
exclude_headingsarrayNoExclude Headings
hierarchicalbooleanNoHierarchical
minimized_defaultbooleanNoMinimized Default
min_screenstringNoMin Screen
marker_typestringNoMarker Type
css_classstringNoCss Class

Related WordPress tools

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.