List theme files
wp_list_theme_filesList the files inside an installed theme (defaults to the active theme), recursively. A theme is named by its folder as wp_list_themes lists it; a path outside the theme directories is refused. Returns theme (the name the other theme tools take) and files: paths relative to the theme folder, sorted, at most 800 (the answer does not say whether more exist); a file's content is read by wp_read_theme_file. A theme that is not installed is an error naming the cause. Requires edit_themes; runs only with the site's write access on. Forwarded by AlphaBridge Connect to the one site this connection reaches.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "wp_list_theme_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | Installed theme, by its folder name as wp_list_themes lists it ("collection/theme" for a theme inside a collection). A theme WordPress counts as broken (for example a folder without style.css in wp-content/themes) can be named too, although wp_list_themes leaves it out. Default: the active theme. |