get_table
Extract HTML tables from web pages into structured rows with column headers, eliminating manual transcription. Target a specific table via CSS selector and capture cell text, including link URLs.
Instructions
Parse an HTML table on the current page into rows of {column_header: cell_text}, using the first matching element's first as headers.
selector picks which table (default: the first on the page, e.g.
"table#programsGrid"). A cell containing a link also gets a <header>_href
key. Use this instead of eyeballing get_page_content for tabular data:
it does the row/cell transcription for you, so pass the results straight
to add_record instead of hand-copying values.
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": "get_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | No | table |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |