write_database_object
Serialize a GFF JSON document into a compressed blob and store it in a campaign database to persist creatures, items, or other objects.
Instructions
Serialize a GFF JSON document into a compressed blob and store it in a campaign database. Use for persisting creatures, items, or other objects.
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": {
"database": "<database>",
"varname": "<varname>",
"data": "<data>"
},
"name": "write_database_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | GFF document as JSON string | |
| varname | Yes | Variable name for the db table row | |
| database | Yes | Database filename (e.g. 'mymodule' or 'mymodule.sqlite3') | |
| playerid | No | Player ID (default: empty string) |