xref_create
Create a cross-reference in the active InDesign document by linking source text to a paragraph, anchor, table, footnote, or endnote target.
Instructions
Create a cross-reference in the active document
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": {
"sourceText": "<sourceText>",
"targetType": "<targetType>",
"targetName": "<targetName>"
},
"name": "xref_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sourceText | Yes | ||
| targetName | Yes | ||
| targetType | Yes | ||
| document_id | No | Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document. | |
| appliedFormat | No | Full Paragraph & Page Number |