create_document_jwt
Creates IT Glue documents with content using session authentication, bypassing the public API limitation that prevents content persistence.
Instructions
Create a new document with content using session authentication.
This tool uses session authentication (cookies + XSRF token from browser) to create documents with content. This is REQUIRED because IT Glue's public API doesn't persist document content.
Two-step process:
Creates document shell via JWT/API
Adds content via internal web API
If no valid session is cached, this will return an error asking you to run the session capture script.
Args: organization_id: Organization ID (required) name: Document name/title (required) content: Document content as HTML (required) document_folder_id: Optional folder ID to place document in public: Whether the document is publicly visible (default False)
Returns: JSON string with the created 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": {
"organization_id": "<organization_id>",
"name": "<name>",
"content": "<content>"
},
"name": "create_document_jwt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| public | No | ||
| content | Yes | ||
| organization_id | Yes | ||
| document_folder_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |