@mcp-z/mcp-drive
Preparing search index...
mcp
toolFactories
fileMove
Function fileMove
fileMove
()
:
{
config
:
{
description
:
"Move files/folders to destination folder. Returns oldParents for undo. Use \"root\" for My Drive root."
;
inputSchema
:
ZodObject
<
{
destinationFolderId
:
ZodString
;
fileIds
:
ZodUnion
<
readonly
[
ZodString
,
ZodArray
<
ZodString
>
]
>
;
returnOldParents
:
ZodOptional
<
ZodBoolean
>
;
}
,
$strip
,
>
;
outputSchema
:
ZodObject
<
{
result
:
ZodDiscriminatedUnion
<
[
ZodObject
<
{
failed
:
ZodOptional
<
ZodArray
<
ZodObject
<
(...)
,
(...)
>
>
>
;
moved
:
ZodArray
<
ZodObject
<
{
fileId
:
...
;
fileName
:
...
;
newParent
:
...
;
oldParents
:
...
;
webViewLink
:
...
;
}
,
$strip
,
>
,
>
;
totalFailed
:
ZodNumber
;
totalMoved
:
ZodNumber
;
totalRequested
:
ZodNumber
;
type
:
ZodLiteral
<
"success"
>
;
}
,
$strip
,
>
,
ZodObject
<
{}
,
$strip
>
,
]
,
"type"
,
>
;
}
,
$strip
,
>
;
title
:
"Move Files"
;
}
;
handler
:
(
__namedParameters
:
{
destinationFolderId
:
string
;
fileIds
?:
string
|
string
[]
;
returnOldParents
?:
boolean
;
}
,
extra
:
EnrichedExtra
,
)
=>
Promise
<
{
[
key
:
string
]:
unknown
}
>
;
name
:
"file-move"
;
}
Returns
{
config
:
{
description
:
"Move files/folders to destination folder. Returns oldParents for undo. Use \"root\" for My Drive root."
;
inputSchema
:
ZodObject
<
{
destinationFolderId
:
ZodString
;
fileIds
:
ZodUnion
<
readonly
[
ZodString
,
ZodArray
<
ZodString
>
]
>
;
returnOldParents
:
ZodOptional
<
ZodBoolean
>
;
}
,
$strip
,
>
;
outputSchema
:
ZodObject
<
{
result
:
ZodDiscriminatedUnion
<
[
ZodObject
<
{
failed
:
ZodOptional
<
ZodArray
<
ZodObject
<
(...)
,
(...)
>
>
>
;
moved
:
ZodArray
<
ZodObject
<
{
fileId
:
...
;
fileName
:
...
;
newParent
:
...
;
oldParents
:
...
;
webViewLink
:
...
;
}
,
$strip
,
>
,
>
;
totalFailed
:
ZodNumber
;
totalMoved
:
ZodNumber
;
totalRequested
:
ZodNumber
;
type
:
ZodLiteral
<
"success"
>
;
}
,
$strip
,
>
,
ZodObject
<
{}
,
$strip
>
,
]
,
"type"
,
>
;
}
,
$strip
,
>
;
title
:
"Move Files"
;
}
;
handler
:
(
__namedParameters
:
{
destinationFolderId
:
string
;
fileIds
?:
string
|
string
[]
;
returnOldParents
?:
boolean
;
}
,
extra
:
EnrichedExtra
,
)
=>
Promise
<
{
[
key
:
string
]:
unknown
}
>
;
name
:
"file-move"
;
}
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
@mcp-z/mcp-drive
Loading...