resources

novelai://... 资源:模型目录、采样器词表、当前生效的生成默认值,以及生成图像的模板。

参见

传输方式 了解客户端如何读取它们

MCP resources exposing the server's static capability surface.

Resources are read-only context an agent pulls without spending Anlas: the model catalogue, the sampler vocabulary, the active generation defaults, and the generated PNGs themselves. The vocabularies are derived from nai.constants so there is a single source of truth.

novelai_image_mcp.resources.generation_defaults(app=Depends(get_app_context))[源代码]

Return the active generation defaults (never credentials or endpoints).

参数:

app (AppContext)

返回类型:

dict[str, Any]

novelai_image_mcp.resources.list_models()[源代码]

List the supported NovelAI models and their capabilities.

返回类型:

dict[str, Any]

novelai_image_mcp.resources.list_samplers()[源代码]

List the sampler, noise-schedule and UC-preset values the API accepts.

返回类型:

dict[str, Any]

novelai_image_mcp.resources.read_output_image(name, app=Depends(get_app_context), routing=Depends(get_routing_context), *, route_scoped_output=Depends(get_route_scoped_output))[源代码]

Return one generated PNG by filename.

The name must be a plain *.png filename that resolves inside the directory the request's images were written to: the configured output directory, or its per-route subdirectory when model routing is active and route-scoped output is on. Anything else -- a path separator, a traversal, another file type, or a name that only exists outside the scoped directory -- is rejected.

参数:
返回类型:

bytes