docs
Reference for the foundry.* API used in query and execute scripts. No arguments: the index — every domain with its methods for this world's game system; 🔒 marks methods above your tier. With domain (e.g. "actors"): the TypeScript declarations of that domain with parameter and result types. With type (e.g. "ActorSummary"): one named type. Read the domain declarations before writing a script; every method takes one object argument and returns a Promise.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Named type from a domain declaration, e.g. "ActorSummary" | |
| domain | No | Domain name from the index, e.g. "actors", "tokens" |