CdpConnection.evalInObsidian method
CdpConnection › evalInObsidian
Evaluates a self-contained function inside Obsidian via the rich helper path, receiving{ app, lib, obsidianModule, context } plus any input (shared helpers like typeIntoEditor / waitUntil live on lib). Mirrors the top-level evalInObsidian, with the transport and vault path pre-bound to this connection.Signature:
evalInObsidian(params: { callback: (input: CommonArguments & ContextArguments<TContextId> & Input) => Promisable<Result>; readonly contextId?: TContextId; readonly input?: Input; readonly shouldSkipPreflightChecks?: boolean; }): Promise<Result>Parameters:
| Parameter | Type | Description |
|---|---|---|
| params | { callback: (input: CommonArguments & ContextArguments<TContextId> & Input) => Promisable<Result>; readonly contextId?: TContextId; readonly input?: Input; readonly shouldSkipPreflightChecks?: boolean; } | The evaluation parameters (callback, optional input/contextId). |
Returns: Promise<Result> — A Promise that resolves to the return value of callback.