Refreshes the AssetDatabase. Use it if any file was added or updated in the project outside of Unity API. Use it if need to force scripts recompilation when '.cs' file changed.
Refreshes the AssetDatabase. Use it if any file was added or updated in the project outside of Unity API. Use it if need to force scripts recompilation when '.cs' file changed.
Execute this tool directly via the MCP Plugin HTTP API:
curl -X POST http://localhost:57989/api/tools/assets-refresh \
-H "Content-Type: application/json" \
-d '{
"options": "string_value"
}'
curl -X POST http://localhost:57989/api/tools/assets-refresh \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_TOKEN" \
-d '{
"options": "string_value"
}'
The token is stored in the file: UserSettings/AI-Game-Developer-Config.json
Using the format: "token": "YOUR_TOKEN"
| Name | Type | Required | Description |
|---|---|---|---|
options | any | No |
{
"type": "object",
"properties": {
"options": {
"$ref": "#/$defs/UnityEditor.ImportAssetOptions"
}
},
"$defs": {
"UnityEditor.ImportAssetOptions": {
"type": "string",
"enum": [
"Default",
"ForceUpdate",
"ForceSynchronousImport",
"ImportRecursive",
"DontDownloadFromCacheServer",
"ForceUncompressedImport"
]
}
}
}
This tool does not return structured output.