docs: name tools and error codes the way the client sees them
Indirect abilities are written lit/<name> (via mcp-adapter-execute-ability) in guides, descriptions and hints, direct tools lit-<name>; guides use the client-visible codes (write_failed, partial_write) and say exactly which tools return a revision_id. ToolNamingTest keeps guides and sources consistent with Ability::isDirect() and checks the overview's direct-tool list. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01At3V6SjwbMe6eMzVGW3Hs7
This commit is contained in:
@@ -146,7 +146,7 @@ final class RevisionRestoreAbility implements Ability
|
||||
$revisionId = PostGuard::id($input['revision_id'] ?? null);
|
||||
$revision = $revisionId === null ? null : get_post($revisionId);
|
||||
if (! $revision instanceof WP_Post || $revision->post_type !== 'revision') {
|
||||
return Errors::notFound('Revision nicht gefunden.', 'Revisionen über lit-revisions-list abrufen.');
|
||||
return Errors::notFound('Revision nicht gefunden.', 'Revisionen über lit/revisions-list abrufen.');
|
||||
}
|
||||
|
||||
// field 'revision_id': post_parent 0 (an orphaned revision) is the only id this
|
||||
|
||||
Reference in New Issue
Block a user