add_tool_to_doc
Insert an HTML tool link into a specific document at a chosen position, with optional display name and category, using workspace and document paths.
Instructions
Insert an HTML tool reference into a 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": {
"workspacePath": "<workspacePath>",
"documentPath": "<documentPath>",
"toolName": "<toolName>"
},
"name": "add_tool_to_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | Optional category where the tool is located | |
| position | No | Where to insert the tool reference: "end" (default), "beginning", or "after:<text>" | |
| toolName | Yes | Name of the HTML tool to insert | |
| displayName | No | Display name for the tool link (defaults to toolName) | |
| documentPath | Yes | Path to the document file (relative to workspace) | |
| workspacePath | Yes | Absolute path to the workspace directory |