Skip to content

Commit cb8de5b

Browse files
committed
fix(docs-gen): skip nested array items descriptor in tool input tables
1 parent a645f3e commit cb8de5b

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

apps/docs/content/docs/en/tools/sendblue.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ Send an iMessage or SMS to a group of recipients via Sendblue.
8686
| Parameter | Type | Required | Description |
8787
| --------- | ---- | -------- | ----------- |
8888
| `numbers` | array | Yes | Recipient phone numbers in E.164 format \(e.g., \["+19998887777", "+13334445555"\]\) |
89-
| `items` | string | No | No description |
9089
| `from_number` | string | Yes | One of your registered Sendblue phone numbers to send from, in E.164 format \(e.g., +18887776666\) |
9190
| `content` | string | No | Message text content. Either content or media_url must be provided. |
9291
| `media_url` | string | No | URL of a media file to send. Either content or media_url must be provided. |

scripts/generate-docs.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1779,6 +1779,9 @@ function extractToolInfo(
17791779
if (endPos !== -1) {
17801780
const paramBlock = paramsContent.substring(startPos + 1, endPos - 1).trim()
17811781
paramPositions.push({ name: paramName, start: startPos, content: paramBlock })
1782+
// Resume scanning after this param's block so nested descriptors
1783+
// (e.g. an array param's `items: {...}`) are not parsed as params.
1784+
paramBlocksRegex.lastIndex = endPos
17821785
}
17831786
}
17841787

0 commit comments

Comments
 (0)