docs_insert_segment_text
Insert text into a specific header, footer, or footnote segment in a Google Doc using the segment ID from docs_add_header/footer.
Instructions
Insert text into a header/footer/footnote segment (segment_id from docs_add_header/footer).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"document_id": "<document_id>",
"segment_id": "<segment_id>",
"text": "<text>"
},
"name": "docs_insert_segment_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| index | No | ||
| segment_id | Yes | ||
| document_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |